random SERVER_DOWN exception during bind
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
repoze.who LDAP plugin |
New
|
Undecided
|
Unassigned |
Bug Description
I randomly experience some exceptions during bind. I'm using the MetadataProvider class.
Here is a part of the traceback:
File "/home/
raise ValueError( "Couldn't bind with supplied credentials. Exception : %s" % err.__repr__() )
ValueError: Couldn't bind with supplied credentials. Exception : SERVER_
I've added "Exception : %s" % err.__repr__() in the code to have more info.
I'm using turbogears, if I refresh the page that raised the exception, everything is ok again.
I'm wondering:
- shouldn't unbind() be called after bind and lookup operations ?
- why bind isn't called just once in make_ldap_
Thanks!
I have omitted to add that I'm connecting to an Active Directory server.
Moreover, from the doc: www.python- ldap.org/ doc/html/ ldap.html# ldap.LDAPObject .unbind_ ext_s
http://
Once an unbind() is called, the connection has to be initialized again.
So, indeed unbind should be called in the add_metadata method
Would it be perhaps a timeout issue?