mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +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
95b13b313b
commit
e858cc2083
@ -2740,6 +2740,14 @@ out:
|
||||
user, "wbcLogoffUser");
|
||||
}
|
||||
|
||||
/*
|
||||
* 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", ctx, retval);
|
||||
|
||||
TALLOC_FREE(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user