[PATCH] Fix LDAP connection timeout during large join

Andrew Bartlett abartlet at samba.org
Thu Oct 18 07:27:50 UTC 2018


On Thu, 2018-10-18 at 08:57 +0200, Stefan Metzmacher via samba-
technical wrote:
> Hi Tim,
> 
> > +    def refresh_ldb_connection(ctx):
> > +        try:
> > +            # query the rootDSE to check the connection
> > +            ctx.samdb.search(scope=ldb.SCOPE_ONELEVEL, attrs=["dn"])
> > +        except ldb.LdbError as e4:
> > +            (enum, estr) = e4.args
> 
> Shouldn't this use SCOPE_BASE?
> 
> metze

Yeah, I've fixed that and the instance it was copied from before
reviewing and pushing it.

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba





More information about the samba-technical mailing list