Re: ldapsearch vs. python-ldap

2009-04-11 Thread Michael Ströder
You might also have hit the problem with automatic referral chasing within libldap as anonymous. Try this to switch that off: l = ldap.initialize('ldap://:389') l.set_option(ldap.OPT_REFERRALS,0) > try: > #l.simple_bind_s('[email protected]', getpass.getpass()) > l.simple_bind_s('\',

ldapsearch vs. python-ldap

2009-04-10 Thread James
Hey, I'm trying to use python-ldap to do something that works with the ldapsearch command line tool. I've posted code samples, can someone point out why the python-ldap fails? What is different about what python-ldap is doing. It seems that it forgets that it just _did_ bind successfully... thanks