s3:winbindd: correctly retry if the netlogon pipe gets disconnected during a logon...
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Mar 2010 20:03:55 +0000 (22:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Mar 2010 08:33:43 +0000 (10:33 +0200)
This fixes hopefully the last part of bug #7295.

metze
(cherry picked from commit 4c6cde99c0751a073120d8bc36d40922d8027344)
(cherry picked from commit 482518fcafb18bda1f084ebf1906a2ad02436b80)

source3/winbindd/winbindd_pam.c

index f3a873bd22751764a80a3215b542fe9278670b25..fab919fe914ef7d51f31ceddca3656e924245f08 100644 (file)
@@ -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;
                }