Accessing Active Directory LDAP
January 14, 2010
Active Directory exposes an LDAP interface. This makes it possible to talk to the service using an LDAP client.
Authenticating
Here's an example of talking to Active Directory from python code:
>>> import ldap >>> con = ldap.initialize('ldap://server:port') >>> dn = 'domain\username' >>> password = …