From b5eb73d9aa3e25aee0ef800961dc8345229fc779 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 8 Feb 2001 18:39:36 +0000 Subject: add pam_setcred() call to pam_auth(). Patch was submited last Oct. jerry (This used to be commit 57165d1578eefa270d5c0bd8697a774eb8cb06cf) --- source3/passdb/pass_check.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/passdb') diff --git a/source3/passdb/pass_check.c b/source3/passdb/pass_check.c index aea543d853..c803816e04 100644 --- a/source3/passdb/pass_check.c +++ b/source3/passdb/pass_check.c @@ -134,6 +134,14 @@ static BOOL pam_auth(char *user, char *password) * put a pam_allow.so entry in /etc/pam.conf for account handling. */ pam_error = pam_acct_mgmt(pamh, PAM_SILENT); PAM_BAIL; + + /* + * This will allow samba to aquire a kerberos token. And, when + * exporting an AFS cell, be able to /write/ to this cell. + */ + pam_error = pam_setcred(pamh, (PAM_ESTABLISH_CRED|PAM_SILENT)); + PAM_BAIL; + pam_end(pamh, PAM_SUCCESS); /* If this point is reached, the user has been authenticated. */ return (True); -- cgit