Re: python-ldap search_s hanging problem on Linux box

2009-06-25 Thread Michael Ströder
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 d

Re: python-ldap search_s hanging problem on Linux box

2009-06-25 Thread Michael Ströder
Tood, please stay on the python-ldap-dev list (Cc:-ed) so others can learn and answer as well. Todd Hanson wrote: > Michael Ströder [mailto:mich...@stroeder.com] wrote: >> Todd Hanson wrote: >>> I have a query that was written in python (2.5) utilizing the >>> python-ldap package (newest stable

Re: python-ldap search_s hanging problem on Linux box

2009-06-24 Thread Michael Ströder
Todd Hanson wrote: > > I have a query that was written in python (2.5) utilizing the > python-ldap package (newest stable version for both Windows and Linux) > to query an Active Directory server for a user’s group membership. The > code works fine on my test machine (2-3 seconds for result) whic

python-ldap search_s hanging problem on Linux box

2009-06-23 Thread Todd Hanson
I have a query that was written in python (2.5) utilizing the python-ldap package (newest stable version for both Windows and Linux) to query an Active Directory server for a user's group membership. The code works fine on my test machine (2-3 seconds for result) which is Windows based but when I