diff options
author | Günther Deschner <gd@samba.org> | 2006-04-25 08:42:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:29 -0500 |
commit | 66fd215dc754963c866c3c3402f65d6bd14b8dcd (patch) | |
tree | 8992c8637e748ef64e00a9315681a943330f7433 /source3/nsswitch | |
parent | 4e602207e1e599452102d6a06036fb6b49cf0a45 (diff) | |
download | samba-66fd215dc754963c866c3c3402f65d6bd14b8dcd.tar.gz samba-66fd215dc754963c866c3c3402f65d6bd14b8dcd.tar.bz2 samba-66fd215dc754963c866c3c3402f65d6bd14b8dcd.zip |
r15229: Save useless roundtrips in pam_auth (fallback to samlogon) when we know
that the DC is not available.
Guenther
(This used to be commit 77407c021997db1b2a86ca26a5d125fa6b782949)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_pam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c index 6f07729493..d35de4ce41 100644 --- a/source3/nsswitch/winbindd_pam.c +++ b/source3/nsswitch/winbindd_pam.c @@ -1105,7 +1105,9 @@ enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain, DEBUG(10,("winbindd_dual_pam_auth_kerberos failed: %s\n", nt_errstr(result))); } - if (NT_STATUS_EQUAL(result, NT_STATUS_NO_LOGON_SERVERS)) { + if (NT_STATUS_EQUAL(result, NT_STATUS_NO_LOGON_SERVERS) || + NT_STATUS_EQUAL(result, NT_STATUS_IO_TIMEOUT) || + NT_STATUS_EQUAL(result, NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND)) { DEBUG(10,("winbindd_dual_pam_auth_kerberos setting domain to offline\n")); domain->online = False; } |