1
0
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:
Andreas Schneider 2008-10-20 14:54:11 +02:00 committed by Günther Deschner
parent 95b13b313b
commit e858cc2083

View File

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