What is python-ldap?

python-ldap provides an object-oriented API to access LDAP directory servers from Python programs.

For LDAP operations the module wraps OpenLDAP‘s client library, libldap.

Additionally, the package contains modules for other LDAP-related stuff:

  • LDIF parsing and generation
  • LDAPv3 subschema

Get it!

Installation instructions are available for several platforms.

Source code can be obtained using Git:

git clone

Mailing list

Discussion about the use and future of python-ldap occurs in the mailing list.

You can subscribe or unsubscribe to this list or browse the list archive.


The documentation for python-ldap 3.x is hosted at Read the Docs.

You can switch between versions of the library, or download PDF or HTML versions for offline use, using the sidebar on the right.

Documentation for some older versions is available for download at the GitHub release page.

Indices and tables