git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e33eb
)
pam_winbind: match more return codes when wbcGetPwnam has failed.
author
Günther Deschner
<gd@samba.org>
Wed, 19 Sep 2012 08:59:50 +0000
(10:59 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 19 Sep 2012 13:06:10 +0000
(15:06 +0200)
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
nsswitch/pam_winbind.c
patch
|
blob
|
history
diff --git
a/nsswitch/pam_winbind.c
b/nsswitch/pam_winbind.c
index fb84985155ef7e7ca1853677d7b9b21bc3a043ec..83d7bb67da9e6f9c23716fe1f1dbf7e269098096 100644
(file)
--- 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;