mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Delete the krb5 ccname variable from the PAM environment if set.
If winbind sets the KRB5CCNAME variable it should unset it when the cache gets destroyed.
This commit is contained in:
parent
cfdbe8a1f2
commit
98f3369e08
@ -1893,6 +1893,14 @@ out:
|
||||
iniparser_freedict(d);
|
||||
}
|
||||
|
||||
/*
|
||||
* Delete the krb5 ccname variable from the PAM environment
|
||||
* if it was set by winbind.
|
||||
*/
|
||||
if (ctx->ctrl & WINBIND_KRB5_AUTH) {
|
||||
pam_putenv(pamh, "KRB5CCNAME");
|
||||
}
|
||||
|
||||
_PAM_LOG_FUNCTION_LEAVE("pam_sm_close_session", pamh, ctrl, retval);
|
||||
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user