The Samba-Bugzilla – Attachment 11690 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 v5
0001-winbindd_pam-DIR-krb5_ccache.patch (text/plain), 1.04 KB, created by
Lars Müller
on 2015-12-08 13:01:44 UTC
(
hide
)
Description:
winbindd_pam DIR krb5 ccache patch v5
Filename:
MIME Type:
Creator:
Lars Müller
Created:
2015-12-08 13:01:44 UTC
Size:
1.04 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 >@@ -492,6 +492,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 rc; >+ mode_t old_umask; >+ gen_cc = talloc_asprintf( >+ mem_ctx, "DIR:/run/user/%d/krb5cc", uid); >+ run_user_dir = talloc_asprintf( >+ mem_ctx, "/run/user/%d", uid); >+ old_umask = umask(0); >+ rc = mkdir(run_user_dir, 0700); >+ umask(old_umask); >+ if (rc == 0) { >+ DEBUG(10, ("creating DIR: %s\n", run_user_dir)); >+ chown(run_user_dir, uid, (gid_t)-1); >+ } >+ 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
Flags:
lars
:
review?
(
gd
)
asn
:
review-
Actions:
View
Attachments on
bug 11631
:
11650
|
11653
|
11654
|
11667
| 11690