This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: timeout in LDAP access
- From: Denis Excoffier <cygwin at Denis-Excoffier dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 8 Jul 2014 21:22:02 +0200
- Subject: Re: timeout in LDAP access
- Authentication-results: sourceware.org; auth=none
- References: <20140618083304 dot GV23700 at calimero dot vinschen dot de> <20140618180102 dot GA27055 at calimero dot vinschen dot de> <FEEBC1A4-B147-45C1-A5AC-F5B9108E998F at Denis-Excoffier dot org> <20140623090959 dot GA1803 at calimero dot vinschen dot de> <C2FB35D9-AE47-4461-8A94-20605D5EB996 at Denis-Excoffier dot org> <20140624155851 dot GJ1803 at calimero dot vinschen dot de> <20140625101526 dot GO1803 at calimero dot vinschen dot de> <E760D646-FFCB-434C-B990-7783DC011326 at Denis-Excoffier dot org> <20140625211355 dot GA25116 at calimero dot vinschen dot de> <E3509AAC-C4A0-4293-988F-E94BF2421180 at free dot fr> <20140707110714 dot GJ1803 at calimero dot vinschen dot de>
On 2014-07-07 13:07, Corinna Vinschen wrote:
>
> For enumerating a non-primary domain, I get exactly two calls to
> cyg_ldap::open which actually do a connect. The first call opens the
> domain for enumeration. The second call opens the primary domain (NULL)
> to fetch the POSIX offset value for the foreign domain (see my document
> explaining the POSIX offset stuff), unless the application or one of
> its parent processes already fetched the POSIX offset for this domain.
>
> I don't observer any further calls to connect in this scenario.
>
>
In your preliminary documentation (your message dated 2014-06-25, please
correct "seet" in it), trustPosixOffset is "some arbitrary 32 bit value",
ie including 0.
In your code (fetch_posix_offset), td->PosixOffset is used to record the
value and also (when 0) to record that the value has still not been
fetched.
I have encountered this case in real life. The domain admins have set
the trustPosixOffset of the secondary domain to zero. This value is therefore
never recorded and the cldap->open occurs again and again.
Hope this helps.
Regards,
Denis Excoffier.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple