diff options
-rw-r--r-- | source/nsswitch/pam_winbind.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c index 95b3d23dd43..15b33e3a2fc 100644 --- a/source/nsswitch/pam_winbind.c +++ b/source/nsswitch/pam_winbind.c @@ -2358,6 +2358,13 @@ int pam_sm_close_session(pam_handle_t *pamh, int flags, } out: + /* + * 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); |