From 619671a71892710b520d09b24c24e02347036e45 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Dec 2006 15:33:57 +0000 Subject: r20240: Be a little more verbose about the credential flags when the debug flag is set. Guenther (This used to be commit ecbab58826a51ace2a0d1181a41391f5d170ff06) --- source3/nsswitch/pam_winbind.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'source3') 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; -- cgit