Skip to main content
******************************
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?
==================

http://timgolden.me.uk/python/active_directory.html


How do I install it?
====================

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

python setup.py install


Prerequisites
=============

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...

Windows
-------
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:
http://www.google.com/search?q=site%3Amicrosoft.com+active+directory+downloads

Python
------
http://www.python.org/ (just in case you didn't know)

pywin32 (was win32all)
----------------------
http://pywin32.sf.net


How do I use it?
================

There are examples at: http://timgolden.me.uk/python/ad_cookbook.html
but as a quick taster, try this, to list all users' display names:

import active_directory

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

What License is it released under?
==================================
(c) Tim Golden <mail@timgolden.me.uk> 2004-2007
Licensed under the (GPL-compatible) MIT License:
http://www.opensource.org/licenses/mit-license.php

Download files

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

Source Distribution

active_directory-0.67.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

active_directory-0.67.0-py2.7.egg (20.0 kB view details)

Uploaded Egg

File details

Details for the file active_directory-0.67.0.tar.gz.

File metadata

File hashes

Hashes for active_directory-0.67.0.tar.gz
Algorithm Hash digest
SHA256 6fde968f60fc30e7e9dee32ed7e9880903f7f0023ae1b62fbb35aee344eb24fa
MD5 08dfec80547fa147c003cc544fd5616d
BLAKE2b-256 1e0a1dc0ceb4be1b173140d5ab11dd44a180e126faa596afd73a1f9ac6a0d772

See more details on using hashes here.

File details

Details for the file active_directory-0.67.0-py2.7.egg.

File metadata

File hashes

Hashes for active_directory-0.67.0-py2.7.egg
Algorithm Hash digest
SHA256 89c702fe075ac31d26bceff4fd557e2c215cac1960a5e04ba996c7816bbd2f6d
MD5 f83e67fdba142a33a9d77e884bd30745
BLAKE2b-256 60055ccd854bac071afcac686535539d151fb1a73f635dfffcccc5025fd4ca02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page