[python-ldap] search_s() appends failed referral references as results

Richard Li richard at thewisewolf.com
Thu Mar 27 05:17:57 CET 2014

I'm working with some code that does LDAP authentication against
ActiveDirectory, and I'm tracking an error down to a strange behavior in
the search_s() of LDAPObject:

It seems when a referral reference is returned with search results and
referral reference couldn't be reached, search_s() leaves the them in the
returned result list as a tuple (None, ['ldap://referral_uri'])

Is that an intended behavior of search_s() ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20140326/21329469/attachment.html>

More information about the python-ldap mailing list