diff options
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 0fb52404d5..5bd4ec3934 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -1068,8 +1068,22 @@ int pam_sm_setcred(pam_handle_t *pamh, int flags, iniparser_freedict(d); } - if (flags & PAM_DELETE_CRED) { - return pam_sm_close_session(pamh, flags, argc, argv); + switch (flags & ~PAM_SILENT) { + + case PAM_DELETE_CRED: + return pam_sm_close_session(pamh, flags, argc, argv); + + case PAM_REFRESH_CRED: + _pam_log_debug(pamh, ctrl, LOG_WARNING, "PAM_REFRESH_CRED not implemented"); + break; + case PAM_REINITIALIZE_CRED: + _pam_log_debug(pamh, ctrl, LOG_WARNING, "PAM_REINITIALIZE_CRED not implemented"); + break; + case PAM_ESTABLISH_CRED: + _pam_log_debug(pamh, ctrl, LOG_WARNING, "PAM_ESTABLISH_CRED not implemented"); + break; + default: + break; } return PAM_SUCCESS; |