1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

add pam_setcred() call to pam_auth(). Patch was submited last Oct.

jerry
(This used to be commit 57165d1578)
This commit is contained in:
Gerald Carter 2001-02-08 18:39:36 +00:00
parent a44daf2961
commit b5eb73d9aa
2 changed files with 16 additions and 0 deletions

View File

@ -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);

View File

@ -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);