From: Stefan Metzmacher Date: Mon, 29 Mar 2010 20:03:55 +0000 (+0200) Subject: s3:winbindd: correctly retry if the netlogon pipe gets disconnected during a logon... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d24f28f52fb0e21943a1639c426cf7f825d15e7;p=thirdparty%2Fsamba.git s3:winbindd: correctly retry if the netlogon pipe gets disconnected during a logon call This fixes hopefully the last part of bug #7295. metze (cherry picked from commit 4c6cde99c0751a073120d8bc36d40922d8027344) (cherry picked from commit 482518fcafb18bda1f084ebf1906a2ad02436b80) Signed-off-by: Stefan Metzmacher --- diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 765fb0d07f8..44861dfd011 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -1369,7 +1369,7 @@ 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; } @@ -1944,7 +1944,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; }