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

Metadata

Release files for active_directory 0.67.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for active_directory 0.67.1
File Size Uploaded
active_directory-0.67.1.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for active_directory 0.67.1
File Interpreter ABI Platform
active_directory-0.67.1-py2.7.egg Legacy Egg format - - Details

Total release size: 30.9 kB

Release files / active_directory-0.67.1.tar.gz

Download URL active_directory-0.67.1.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8ef8538f41200acdad69dbea0c19f0ae354b2d334fe008de4a5c7121fdc6ada1
BLAKE2b-256 checksum
How to use checksums
f3184c17c85824abff9c47a72dc6a1afb498b438a94aa23602c4017f4aee8c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / active_directory-0.67.1-py2.7.egg

Download URL active_directory-0.67.1-py2.7.egg
Size 20.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
e97506782b15df154e5c5d36736e079b683b26689d818be3bf76d4f29a60618e
BLAKE2b-256 checksum
How to use checksums
0afab92781a0a14771f096f8a593c2633acc63d0a45eb06f8a8b5e748cec1521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.67.1 This release

2 release files

0.67.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page