$npx skillfedfor your agent

python-ldap

Python modules for implementing LDAP clients

With conditionsPyPI Python ModulesReleased May 20264.4M downloads / mopython-ldapSource build

Decision gist · record as of 2026-08-14

sdist only — python_ldap-3.4.7.tar.gz · builds from source
v3.4.7 · released 2026-05-20 · Python >=3.6 · 2 runtime deps: pyasn1, pyasn1_modules

Yes, if you need LDAP directory integration and can meet the system dependency requirements. The package is stable, actively maintained, has no known vulnerabilities, and is widely used in enterprise Python applications. The main barrier is high install friction—you must have OpenLDAP development libraries available on your system. If you're working with corporate LDAP servers, this is the standard choice; if you don't need LDAP, the system dependency overhead makes it not worth installing.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires OpenLDAP client libraries and development headers installed on the system; not a pure-Python package.
  • High install friction due to compiled C extension wrapping OpenLDAP libraries; requires system-level LDAP development headers.
  • Maintenance is active with recent releases and no known vulnerabilities.

License · maintenance · safety

python-ldap (permissive) — Licensed under a permissive Python-style license; contributions since July 2021 are under MIT. License text preservation is required but imposes minimal restrictions on use or distribution.

last release 2026-05-20 (86 days) · last repo commit 2026-07-09 · 441 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,423,726 downloads/mo, #2,307 on PyPI

Verify before relying

import ldap
l = ldap.initialize("ldap://my_ldap_server.my_domain")
l.simple_bind_s("", "")
l.search_s("o=My Organisation, c=AU", ldap.SCOPE_SUBTREE, "objectclass=*")
  • Whether the package's C extension compiles cleanly on all supported platforms.
  • Performance characteristics and scalability limits for large directory queries.
  • Current state of SASL support and any known limitations with modern LDAP servers.
Same gist for agents: .md · .json

What it is and what it does

python-ldap is a wrapper around OpenLDAP client libraries that exposes LDAP directory operations through Python objects. It lets you connect to LDAP servers, authenticate users, search directory entries, and process LDAP-related data formats like LDIF and schema definitions. The package is built on compiled C extensions, so it depends on system-level OpenLDAP libraries being present.

The library is used primarily for authentication and directory lookups in enterprise environments. It handles the low-level protocol details and connection management, letting you focus on directory queries and user management logic. Runtime dependencies are pyasn1 and pyasn1_modules for ASN.1 encoding, but the installation itself requires C compilation and OpenLDAP headers.

Use it for

  • Authenticate users against an LDAP server in a web application or service.
  • Search and retrieve user or group information from a directory for provisioning workflows.
  • Process LDIF files for directory data import or export.
  • Validate LDAP schema and parse LDAPv3 controls and extended operations.
  • Build directory-aware applications that need to query organizational structure or user attributes.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need LDAP directory integration and can meet the system dependency requirements.

The package is stable, actively maintained, has no known vulnerabilities, and is widely used in enterprise Python applications. The main barrier is high install friction—you must have OpenLDAP development libraries available on your system. If you're working with corporate LDAP servers, this is the standard choice; if you don't need LDAP, the system dependency overhead makes it not worth installing.

Install

python-ldap on PyPI

Before you install

High install friction due to compiled C extension wrapping OpenLDAP libraries; requires system-level LDAP development headers. Maintenance is active with recent releases and no known vulnerabilities.

Requires OpenLDAP client libraries and development headers installed on the system; not a pure-Python package.

License in practice

Licensed under a permissive Python-style license; contributions since July 2021 are under MIT. License text preservation is required but imposes minimal restrictions on use or distribution.

Quickstart

import ldap
l = ldap.initialize("ldap://my_ldap_server.my_domain")
l.simple_bind_s("", "")
l.search_s("o=My Organisation, c=AU", ldap.SCOPE_SUBTREE, "objectclass=*")

Verify before relying

  • Whether the package's C extension compiles cleanly on all supported platforms.
  • Performance characteristics and scalability limits for large directory queries.
  • Current state of SASL support and any known limitations with modern LDAP servers.

Package facts

Licensepython-ldap permissive
Python supportSupports the current Python release >=3.6
Install frictionHigh. Source build required
Runtime dependencies
2 packages
pyasn1pyasn1_modules
MaintenanceActively maintained 86 days since the last release
Last repo commit
First released
Downloads4,423,726 / month, #2,307 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: CProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: DatabaseTopic :: InternetTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Systems Administration :: Authentication/Directory :: LDAP

Evidence: python_ldap-3.4.7.tar.gz

Tags

Capabilities
ldap client library pythondirectory server authenticationldap query and binduser lookup directoryldap schema processingdirectory services apildap data interchange format
Topics
ldap-clientdirectory-servicesauthentication
PyPI keywords
ldapdirectoryauthentication

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 › “directory server authentication”

  • python-ldapProvides an object-oriented Python API to connect to and query LDAP…
  • pykerberosProvides a Python wrapper for Kerberos (GSSAPI) authentication,…
  • kerberosProvides a high-level Python wrapper for Kerberos (GSSAPI)…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also django-auth-ldap · ldaptor · python3-ldap · msldap · ldap3 · python-active-directory · ldapdomaindump · ZODB · pyobjc-framework-OpenDirectory · requests-oauth