Skip to main content

Active Directory

Project description

Python Active Directory Module

What is it?

Active Directory (AD) is Microsoft's answer to LDAP, the industry-standard
directory service holding information about users, computers and
other resources in a tree structure, arranged by departments or
geographical location, and optimized for searching.

The Python Active Directory module is a lightweight wrapper on top of the
pywin32 extensions, and hides some of the plumbing needed to get Python to
talk to the AD API. It's pure Python and should work with any version of
Python from 2.2 onwards (generators) and any recent version of pywin32.

Where do I get it?

How do I install it?

When all's said and done, it's just a module. But for those
who like setup programs:

python install


If you're running a recent Python (2.2+) on a recent Windows (2k, 2k3, XP)
and you have Mark Hammond's pywin32 extensions installed, you're probably
up-and-running already. Otherwise...

If you're running Win9x / NT4 you'll need to get AD support
from Microsoft. Microsoft URLs change quite often, so I suggest you
do this:

------ (just in case you didn't know)

pywin32 (was win32all)

How do I use it?

There are examples at:
but as a quick taster, try this, to list all users' display names:

import active_directory

for person in (objectCategory='Person'):
print person.displayName

What License is it released under?
(c) Tim Golden <> 2004-2007
Licensed under the (GPL-compatible) MIT License:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for active_directory, version 0.67.1
Filename, size File type Python version Upload date Hashes
Filename, size active_directory-0.67.1-py2.7.egg (20.0 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size active_directory-0.67.1.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page