summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-09-10 09:30:04 +0200
committerGünther Deschner <gd@samba.org>2013-09-10 13:48:22 +0200
commiteae5373cfbe51a444d6381e6f7aeeb9f945902e9 (patch)
tree0e5abfbe0b79c2eb661d68b5f99bfc9306bb66dd
parent13094dc8f6777e6d3d17cfd30fa6adf670702949 (diff)
downloadsamba-eae5373cfbe51a444d6381e6f7aeeb9f945902e9.tar.gz
samba-eae5373cfbe51a444d6381e6f7aeeb9f945902e9.tar.bz2
samba-eae5373cfbe51a444d6381e6f7aeeb9f945902e9.zip
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 957dde3f1e..c356686488 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) ||