summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-09-19 10:59:50 +0200
committerGünther Deschner <gd@samba.org>2012-09-19 15:06:10 +0200
commit98d90c02f0961d173bebb9901c7ad0819827f96e (patch)
treed209f8e06b2162c0e7fd1d54d06e09b56264283e /nsswitch
parentf6e33eb890dbe4451d3b3ff52a2f38d3a5ceb8c8 (diff)
downloadsamba-98d90c02f0961d173bebb9901c7ad0819827f96e.tar.gz
samba-98d90c02f0961d173bebb9901c7ad0819827f96e.tar.bz2
samba-98d90c02f0961d173bebb9901c7ad0819827f96e.zip
pam_winbind: match more return codes when wbcGetPwnam has failed.
This is required to properly return PAM_USER_UNKNOWN in case winbind had a problem. Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Sep 19 15:06:10 CEST 2012 on sn-devel-104
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index fb84985155..83d7bb67da 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2064,6 +2064,9 @@ static int valid_user(struct pwb_context *ctx,
switch (wbc_status) {
case WBC_ERR_UNKNOWN_USER:
+ /* match other insane libwbclient return codes */
+ case WBC_ERR_WINBIND_NOT_AVAILABLE:
+ case WBC_ERR_DOMAIN_NOT_FOUND:
return 1;
case WBC_ERR_SUCCESS:
return 0;