summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-01-25 10:29:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:27 -0500
commit3f9585018d2dac8f61dbc05e6d46e1550974e9b8 (patch)
tree2c3efb7c0f796ce9de807702f70b01ea3ae47662 /source3/nsswitch
parent05ec6391273ca40ea49d4321618d8729327b2b75 (diff)
downloadsamba-3f9585018d2dac8f61dbc05e6d46e1550974e9b8.tar.gz
samba-3f9585018d2dac8f61dbc05e6d46e1550974e9b8.tar.bz2
samba-3f9585018d2dac8f61dbc05e6d46e1550974e9b8.zip
r21016: Fix pam_sm_setcred again.
Jerry, the switch statement must ignore the PAM_SILENT flag. Guenther (This used to be commit 46d23c72bf4f3bd04021a9caf8d6b1380352b811)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 51a253d67a..09f9eee7df 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -1406,7 +1406,7 @@ int pam_sm_setcred(pam_handle_t *pamh, int flags,
_PAM_LOG_FUNCTION_ENTER("pam_sm_setcred", pamh, ctrl, flags);
- switch (flags) {
+ switch (flags & ~PAM_SILENT) {
case PAM_DELETE_CRED:
ret = pam_sm_close_session(pamh, flags, argc, argv);