The Samba-Bugzilla – Attachment 11653 Details for
Bug 11631
DIR krb5 ccache not covered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
winbindd_pam DIR krb5 ccache patch v2
0001-winbindd_pam-DIR-krb5_ccache.patch (text/plain), 1.23 KB, created by
Lars Müller
on 2015-12-03 21:56:57 UTC
(
hide
)
Description:
winbindd_pam DIR krb5 ccache patch v2
Filename:
MIME Type:
Creator:
Lars Müller
Created:
2015-12-03 21:56:57 UTC
Size:
1.23 KB
patch
obsolete
>From: Lars Mueller <lars@samba.org> >Date: Thu, 1 Dec 2015 20:40:45 +0100 >Subject: [PATCH] cover DIR krb5 ccache too >Bugzilla: bso#11631 > >Index: source3/winbindd/winbindd_pam.c >=================================================================== >--- source3/winbindd/winbindd_pam.c.orig >+++ source3/winbindd/winbindd_pam.c >@@ -41,6 +41,7 @@ > #include "auth/kerberos/pac_utils.h" > #include "auth/gensec/gensec.h" > #include "librpc/crypto/gse_krb5.h" >+#include <fcntl.h> > > #undef DBGC_CLASS > #define DBGC_CLASS DBGC_WINBIND >@@ -492,6 +493,23 @@ static const char *generate_krb5_ccache( > gen_cc = talloc_asprintf( > mem_ctx, "WRFILE:/tmp/krb5cc_%d", uid); > } >+ if (strequal(type, "DIR")) { >+ char *run_user_dir = NULL; >+ int fd; >+ gen_cc = talloc_asprintf( >+ mem_ctx, "DIR:/run/user/%d/krb5cc", uid); >+ run_user_dir = talloc_asprintf( >+ mem_ctx, "/run/user/%d", uid); >+ fd = open(run_user_dir, O_DIRECTORY); >+ if (fd == -1) { >+ DEBUG(10, ("creating DIR: %s\n", run_user_dir)); >+ mkdir(run_user_dir, 0700); >+ chown(run_user_dir, uid, (gid_t)-1); >+ } else { >+ close(fd); >+ } >+ talloc_free(run_user_dir); >+ } > if (strequal(type, "KEYRING")) { > gen_cc = talloc_asprintf( > mem_ctx, "KEYRING:persistent:%d", uid);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11631
:
11650
|
11653
|
11654
|
11667
|
11690