netmanchris
netmanchris

Reputation: 173

Best way to Query Microsoft AD with Python 3

Two part question:

  1. What is the "best" way to query Microsoft AD with Python 3.x? With "best" defined as multi-OS support and use of core Python libraries preferable.

  2. Examples of querying AD structure for members of a specific AD group would be extremely appreciated.

I've looked at a few different libraries, but had issues loading them under OS X, Python 3, etc. Hoping someone's already looked at this issue.

Upvotes: 12

Views: 51989

Answers (1)

cannatag
cannatag

Reputation: 1588

You can try the ldap3 package from Pypi at https://pypi.python.org/pypi/ldap3. It strictly follows the latest rfc for LDAP and is a pure Python implementation so can be used on different platforms, either with Python 2 (2.6 or 2.7) or Python 3

Disclaimer: I'm the author of the ldap3 library.

Upvotes: 27

Related Questions