ldaptor
A Pure-Python Twisted library for LDAP
Decision gist · record as of 2026-08-14
Yes, if you are building on Twisted or need async LDAP operations. The library is stable (Production/Stable status), has no known vulnerabilities, and low install friction. The gap between the latest release (2021-02-28) and active repo commits (2026-05-25) suggests development may outpace PyPI releases; verify current Python version support before adopting in new projects. Suitable for established LDAP integration tasks.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Twisted reactor event loop; LDAP operations are async/deferred-based, not blocking calls.
- Low install friction; ships as a wheel.
- Maintenance is active with recent commits (2026-05-25), though the latest PyPI release is from 2021-02-28.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2021-02-28 (1993 days) · last repo commit 2026-05-25 · 167 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,917,769 downloads/mo, #3,432 on PyPI
Alternatives
Verify before relying
pip install ldaptor
from twisted.internet import reactor, defer
from ldaptor.protocols.ldap import ldapclient, ldapconnector
@defer.inlineCallbacks
def query():
c = ldapconnector.LDAPClientCreator(reactor, ldapclient.LDAPClient)
client = yield c.connect(b'dc=example,dc=com')
yield client.bind(b'user@example.com', b'password')
# perform search or other operations
reactor.callWhenRunning(query)
reactor.run()- Whether the 2021-02-28 release date reflects actual maintenance lag or if PyPI metadata is stale relative to active development.
- Compatibility with Python versions beyond 3.9 (classifiers list up to 3.9; current support unclear).
What it is and what it does
Ldaptor is a pure-Python LDAP client library that runs on top of Twisted, providing asynchronous access to LDAP directory services. It handles the full LDAP protocol stack—client connections, authentication, directory searches, and filter parsing—without requiring compiled C extensions. The library also includes utilities for LDIF format generation, Samba password operations, and command-line tools.
You use it when you need to query or authenticate against LDAP directories from Python, particularly in applications already built on Twisted or where async I/O is desired. It parses LDAP filters from text, generates protocol messages, and manages the connection lifecycle through Twisted's deferred-based concurrency model. Dependencies are all pure-Python (Twisted, pyparsing, passlib, six, zope.interface), so installation is straightforward.
Use it for
- Authenticate users against an LDAP directory in a Twisted-based web or network service.
- Query LDAP directory entries (users, groups, organizational units) and export results as LDIF.
- Implement Samba password changes programmatically from a Python application.
- Build LDAP client tools or utilities that need to parse and generate LDAP protocol messages.
- Integrate directory lookups into async Python applications without blocking the event loop.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on Twisted or need async LDAP operations.
The library is stable (Production/Stable status), has no known vulnerabilities, and low install friction. The gap between the latest release (2021-02-28) and active repo commits (2026-05-25) suggests development may outpace PyPI releases; verify current Python version support before adopting in new projects. Suitable for established LDAP integration tasks.
Install
ldaptor on PyPI
Before you install
Low install friction; ships as a wheel. Maintenance is active with recent commits (2026-05-25), though the latest PyPI release is from 2021-02-28. Depends on Twisted and four other pure-Python libraries, all widely available.
Requires Twisted reactor event loop; LDAP operations are async/deferred-based, not blocking calls.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install ldaptor
from twisted.internet import reactor, defer
from ldaptor.protocols.ldap import ldapclient, ldapconnector
@defer.inlineCallbacks
def query():
c = ldapconnector.LDAPClientCreator(reactor, ldapclient.LDAPClient)
client = yield c.connect(b'dc=example,dc=com')
yield client.bind(b'user@example.com', b'password')
# perform search or other operations
reactor.callWhenRunning(query)
reactor.run()
Verify before relying
- Whether the 2021-02-28 release date reflects actual maintenance lag or if PyPI metadata is stale relative to active development.
- Compatibility with Python versions beyond 3.9 (classifiers list up to 3.9; current support unclear).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release ~=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespasslibTwistedpyparsingsixzope.interface |
| Maintenance | Actively maintained 1,993 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,917,769 / month, #3,432 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: TwistedIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Systems Administration :: Authentication/Directory :: LDAP |
Evidence: ldaptor-21.2.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “LDAP protocol implementation”
- ldaptorLdaptor is a pure-Python LDAP client library built on Twisted that…
- impacketImpacket provides low-level Python classes for constructing and…
- msldapmsldap is a Python library for querying and interacting with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also python-ldap · django-auth-ldap · msldap · python-active-directory · ldap3 · python3-ldap · ldapdomaindump · treq · Twisted · txtorcon