Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-11 Thread Geert Jansen
On Fri, Apr 10, 2009 at 11:24 AM, Olivier Sessink wrote: > I noticed that there is some C code related to Kerberos in python-ad. > Is this code required to initialize a kerberos authentication, or is > this just to change passwords and things like that? Actually, both. The C code exposes a small

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('\',