summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-29 22:03:55 +0200
committerStefan Metzmacher <metze@samba.org>2010-03-29 22:15:13 +0200
commit4c6cde99c0751a073120d8bc36d40922d8027344 (patch)
tree0b32e0c6d5bd7c11d3bb382f93ab9ad457ea1fb1
parentc5d1d68f0bb9b2d544bab01adc4daad8ed6103fc (diff)
downloadsamba-4c6cde99c0751a073120d8bc36d40922d8027344.tar.gz
samba-4c6cde99c0751a073120d8bc36d40922d8027344.tar.bz2
samba-4c6cde99c0751a073120d8bc36d40922d8027344.zip
s3:winbindd: correctly retry if the netlogon pipe gets disconnected during a logon call
This fixes hopefully the last part of bug #7295. metze
-rw-r--r--source3/winbindd/winbindd_pam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 86c7bbfd8d..62f3e54fc1 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -1360,7 +1360,7 @@ static NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
might not yet have noticed that the DC has killed
our connection. */
- if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)) {
+ if (!rpccli_is_connected(netlogon_pipe)) {
retry = true;
continue;
}
@@ -1935,7 +1935,7 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
might not yet have noticed that the DC has killed
our connection. */
- if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)) {
+ if (!rpccli_is_connected(netlogon_pipe)) {
retry = true;
continue;
}