summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-09-10 09:30:04 +0200
committerKarolin Seeger <kseeger@samba.org>2013-10-07 10:31:46 +0200
commit5a55cb636fa50e96000ea6a00960cc34e00e26a1 (patch)
tree95f27a7437e78eb80c116abfd3bbb3e831bdca91
parent58038f6b26b5363f07d6e4a3fac6db461f9bca2c (diff)
downloadsamba-5a55cb636fa50e96000ea6a00960cc34e00e26a1.tar.gz
s3-winbind: Add support for the kernel krb5 keyring buffer.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r--source3/winbindd/winbindd_pam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 957dde3f1e7..c356686488a 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -492,6 +492,10 @@ static const char *generate_krb5_ccache(TALLOC_CTX *mem_ctx,
gen_cc = talloc_asprintf(
mem_ctx, "WRFILE:/tmp/krb5cc_%d", uid);
}
+ if (strequal(type, "KEYRING")) {
+ gen_cc = talloc_asprintf(
+ mem_ctx, "KEYRING:persistent:%d", uid);
+ }
if (strnequal(type, "FILE:/", 6) ||
strnequal(type, "WRFILE:/", 8) ||