Blocking bind....

Jerry Lee tesno2 at hotmail.com
Mon Mar 3 23:53:26 CET 2003


Hello again,

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.

Mario Cicognini (thx Mario!!) was kind enough to suggest the following:

         l = ldap.open(LDAPServer)
         id = l.simple_bind(LDAPbindUsername, LDAPbindPassword)
         status,res = l.result(id, 1, 60)
         if status != 'RES_BIND':
             return -1

which I tried with no success.

My app blocks at the
id = l.simple_bind(LDAPbindUsername, LDAPbindPassword)
line and doesn't return until around 90secs later.
I have to kill it otherwise.

Is my supposedly async bind a sync bind?? (I tried bind_s with exactly the 
same results)
If so, how can I change the timeout so it doesn't wait 90secs?
Where is the async bind hiding or does it exist??

Am I missing something??

I'm running Linux Mandrake 9.0, openldap 2.0.25 and lib2-devel (Mandrake 
separate the libs from the openldap server and clients).
I downloaded python-ldap 2.0.0pre06 and compiled it and things work OK - 
except for this ;-)

Thanks,

Jerry.




More information about the python-ldap mailing list