python-ldap search_s hanging problem on Linux box

Michael Ströder michael at stroeder.com
Thu Jun 25 16:39:05 CEST 2009


Todd Hanson wrote:
> I found the resolution!!!  If I add the line of code
> "con.set_option(ldap.OPT_REFERRALS, 0)" after making the connection
> everything runs fine.  Why?

Search the python-ldap-dev archive. This is a known issue with automatic
referral chasing within libldap. Switching it off does not do any harm.

Ciao, Michael.



More information about the python-ldap mailing list