From 5a55cb636fa50e96000ea6a00960cc34e00e26a1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 10 Sep 2013 09:30:04 +0200 Subject: [PATCH] s3-winbind: Add support for the kernel krb5 keyring buffer. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/winbindd/winbindd_pam.c | 4 ++++ 1 file changed, 4 insertions(+) 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) || -- 2.11.4.GIT