The Samba-Bugzilla – Attachment 7347 Details for
Bug 8771
Winbind takes up to 20 minutes to change from DC 1 to DC 2 and keeps in the meantime to respond NT_STATUS_IO_TIMEOUT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for master and 3.6.x.
0001-s3-winbindd-Close-netlogon-connection-if-the-status.patch (text/plain), 1.61 KB, created by
Jeremy Allison
on 2012-02-25 00:16:00 UTC
(
hide
)
Description:
git-am fix for master and 3.6.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2012-02-25 00:16:00 UTC
Size:
1.61 KB
patch
obsolete
>From c94bceb0929734c23df2ee5b0feea37ccbf5572c Mon Sep 17 00:00:00 2001 >From: Matthieu Patou <mat@matws.net> >Date: Fri, 24 Feb 2012 16:13:10 -0800 >Subject: [PATCH] s3-winbindd: Close netlogon connection if the status > returned by the NetrSamLogonEx call is timeout in the > pam_auth_crap path > >If not the child process would hang for quite a long time up to the >moment when the connection is cleaned by the kernel (took ~ 20 minutes) >in my tests. >--- > source3/winbindd/winbindd_pam.c | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c >index 7163af2..55addb9 100644 >--- a/source3/winbindd/winbindd_pam.c >+++ b/source3/winbindd/winbindd_pam.c >@@ -1322,7 +1322,7 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain, > rpc changetrustpw' */ > > if ( NT_STATUS_EQUAL(result, NT_STATUS_ACCESS_DENIED) ) { >- DEBUG(3,("winbindd_pam_auth: sam_logon returned " >+ DEBUG(3,("winbind_samlogon_retry_loop: sam_logon returned " > "ACCESS_DENIED. Maybe the trust account " > "password was changed and we didn't know it. " > "Killing connections to domain %s\n", >@@ -1333,6 +1333,13 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain, > > } while ( (attempts < 2) && retry ); > >+ if (NT_STATUS_EQUAL(result, NT_STATUS_IO_TIMEOUT)) { >+ DEBUG(3,("winbind_samlogon_retry_loop: sam_network_logon(ex) " >+ "returned NT_STATUS_IO_TIMEOUT after the retry." >+ "Killing connections to domain %s\n", >+ domainname)); >+ invalidate_cm_connection(&domain->conn); >+ } > return result; > } > >-- >1.7.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8771
:
7335
|
7336
|
7337
|
7345
|
7346
|
7347
|
7348