summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-12-18 15:33:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:35 -0500
commit619671a71892710b520d09b24c24e02347036e45 (patch)
tree818f86181199d7cfedab8d8c550e59e43e7e2c13
parent6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c (diff)
downloadsamba-619671a71892710b520d09b24c24e02347036e45.tar.gz
samba-619671a71892710b520d09b24c24e02347036e45.tar.bz2
samba-619671a71892710b520d09b24c24e02347036e45.zip
r20240: Be a little more verbose about the credential flags when the debug flag
is set. Guenther (This used to be commit ecbab58826a51ace2a0d1181a41391f5d170ff06)
-rw-r--r--source3/nsswitch/pam_winbind.c18
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;