Blocking bind....
Jerry Lee
tesno2 at hotmail.com
Tue Mar 4 21:16:14 CET 2003
Hi Michael,
>From: Michael Ströder <michael at stroeder.com>
>To: Jerry Lee <tesno2 at hotmail.com>
>CC: python-ldap-dev at lists.sourceforge.net
>Subject: Re: Blocking bind....
>Date: Tue, 04 Mar 2003 19:30:08 +0100
>
>Jerry Lee wrote:
>>Michael Ströder wrote:
>>>Jerry Lee wrote:
>>>>
>>>>I recently posted to the list about a problem I am having with bind
>>>>blocking for a long time before it times out if the server isn't there.
>>>
>>>You can elaborate on "the server isn't there"?
>>
>>The machine doesn't exist - an ip address that I can't ping.
>
>I think it depends whether and which ICMP response your LDAP client
>receives in this case.
>
>>How do I set the TIMEOUT values with set_option.
>>Could you give me an example of how to set OPT_TIMEOUT and
>>OPT_NETWORK_TIMEOUT to 10 secs??
>
> >>> l.set_option(ldap.OPT_TIMELIMIT,60.0)
> >>> l.get_option(ldap.OPT_TIMELIMIT)
>60
>
No joy. The option got set OK but it still doesn't timeout after the
TIMELIMIT I specify.
>>Is the synchronous/asynchronous nature of the call controlled in the
>>python-ldap module or is it a function of the OpenLDAP libs??
>
>It's controlled in the OpenLDAP libs. Updating OpenLDAP could be a good
>idea.
>
>My attempt to implement a result() method which controls the timeout was a
>CPU hog.
>
>Ciao, Michael.
I'm going to update my OpenLDAP later this week.
I'll keep you posted on the results.
Thanks for all your help,
Jerry.
More information about the python-ldap
mailing list