python-active-directory
An Active Directory client library for Python
What it is and what it does
python-active-directory is a client library for querying and managing objects in Active Directory from Python applications running on UNIX/Linux systems. It wraps LDAP protocol operations through python-ldap, dnspython, and ply to provide a higher-level interface for directory operations.
The library targets developers building directory-aware applications on Linux servers that need to integrate with Active Directory infrastructure. It requires system LDAP libraries and network access to a reachable directory server. The package is classified as Production/Stable but has been in abandoned maintenance since 2022-11-11.
Use it for:
- Query user and group information from Active Directory in Python applications on Linux
- Authenticate users against an Active Directory domain from a UNIX/Linux application
- Manage directory objects programmatically via LDAP protocol operations
- Integrate on-premises Active Directory with Python-based infrastructure tools
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
An Active Directory client library for Python on UNIX/Linux systems that provides directory queries and object management through LDAP.
Yes, with conditions. The package is stable and permissively licensed under MIT, but abandoned maintenance since 2022-11-11 is a significant concern for long-term reliability. Install only if you have an existing codebase already using it, need Active Directory integration on Linux without alternatives, and can accept the risk of no upstream fixes. For new projects, evaluate actively maintained alternatives first.
Install
python-active-directory on PyPI
pip
pip install python-active-directoryuv
uv add python-active-directorypoetry
poetry add python-active-directoryInstalling python-active-directory
Before you install
Medium install friction due to compiled wheels for multiple Python versions and architectures. Package is in abandoned maintenance status with no releases since 2022-11-11; last commit was 2022-11-11. Depends on python-ldap, which typically requires system LDAP libraries.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions, requiring only license attribution.
Quickstart
pip install python-active-directory
import python_active_directory
# Query Active Directory through python-ldap, dnspython, and ply dependencies
Requires system LDAP libraries and an accessible Active Directory server; python-ldap dependency may need compilation on some systems.
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8 despite wheel availability for 3.10 and 3.11
- Current compatibility with modern Active Directory implementations and LDAP protocol versions
- Whether abandoned status affects real-world usability or if the library is stable enough for production without active maintenance
- Specific API surface and usage patterns beyond the general LDAP query capability
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — python-ldap, dnspython, ply |
| Maintenance | abandoned — 1,372 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 163,046/month — #10,579 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_active_directory-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; python_active_directory-2.0.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; python_active_directory-2.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; python_active_directory-2.0.1-cp310-cp310-musllinux_1_1_aarch64.whl; python_active_directory-2.0.1-cp310-cp310-musllinux_1_1_i686.whl; python_active_directory-2.0.1-cp310-cp310-musllinux_1_1_x86_64.whl; python_active_directory-2.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; python_active_directory-2.0.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl; python_active_directory-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; python_active_directory-2.0.1-cp311-cp311-musllinux_1_1_aarch64.whl; python_active_directory-2.0.1-cp311-cp311-musllinux_1_1_i686.whl; python_active_directory-2.0.1-cp311-cp311-musllinux_1_1_x86_64.whl; python_active_directory-2.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; python_active_directory-2.0.1-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl; python_active_directory-2.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; python_active_directory-2.0.1-cp36-cp36m-musllinux_1_1_aarch64.whl; python_active_directory-2.0.1-cp36-cp36m-musllinux_1_1_i686.whl; python_active_directory-2.0.1-cp36-cp36m-musllinux_1_1_x86_64.whl; python_active_directory-2.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; python_active_directory-2.0.1-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
msldapmsldap is a Python library for querying and…
permissive · top 15,000 on PyPI
ldaptorLdaptor is a pure-Python LDAP client library…
permissive · top 5,000 on PyPI
ldap3ldap3 is a pure Python LDAP V3 client library…
copyleft · top 5,000 on PyPI
ldapdomaindumpCollects and exports Active Directory…
permissive · top 15,000 on PyPI
python-ldapProvides an object-oriented Python API to…
permissive · top 5,000 on PyPI
django-auth-ldapProvides a Django authentication backend that…
permissive · top 15,000 on PyPI
python3-ldapThis package is a redirect to ldap3—a pure…
copyleft · top 15,000 on PyPI
google-ads-admanagerPython client library for Google Ad Manager…
permissive · top 15,000 on PyPI
AuthEncodingAuthEncoding provides a framework for creating,…
unclear · top 15,000 on PyPI
dsinternalsInteract with Windows Active Directory by…
permissive · top 15,000 on PyPI