A strictly RFC 4510 conforming LDAP V3 pure Python client library
ldap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client library. The same codebase runs in Python 2, Python 3, PyPy and PyPy3.
Version 2 warning
In version 2 of ldap3 some default values have been changed and the ldap3 namespace has been decluttered, removing redundant constants (look at the changelog for details). Also, the result code constants were moved to ldap3.core.results and the ldap3 custom exceptions were stored in ldap3.core.exceptions. If you experience errors in your existing code you should rearrange the import statements or explicitly set the defaults to their former values.
A more pythonic LDAP
LDAP operations look clumsy and hard-to-use because they reflect the old-age idea that time-consuming operations should be performed client-side to not hog the server with heavy elaborations. To alleviate this ldap3 includes a fully functional Abstraction Layer that lets you interact with the LDAP server in a modern and pythonic way. With the Abstraction Layer you don’t need to directly issue any LDAP operation at all.
Project home page is https://github.com/cannatag/ldap3
Documentation is available at http://ldap3.readthedocs.io
The ldap3 project is open source software released under the LGPL v3 license. Copyright 2013 - 2018 Giovanni Cannata
ldap3 is PEP8 compliant, except for line length.
Package download is available at https://pypi.python.org/pypi/ldap3.
Install with pip install ldap3
You can download the latest source at https://github.com/cannatag/ldap3
Continuous integration for testing is at https://travis-ci.org/cannatag/ldap3
- Ilya Etingof, the author of the pyasn1 package for his excellent work and support.
- Mark Lutz for his Learning Python and Programming Python excellent books series and John Goerzen and Brandon Rhodes for their book Foundations of Python Network Programming. These books are wonderful tools for learning Python and this project owes a lot to them.
- JetBrains for donating to this project the Open Source license of PyCharm Professional.
- GitHub for providing the free source repository space and the tools I use to develop this project.
- The FreeIPA team for letting me use their demo LDAP server in the ldap3 tutorial.
If you want to keep this project up and running you can send me an Amazon gift card. I will use it to improve my skills in the Information and Communication technology.
Updated changelog at https://ldap3.readthedocs.io/changelog.html
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ldap3-2.6.1-py2.6.egg (830.6 kB)||File type Egg||Python version 2.6||Upload date||Hashes View hashes|
|Filename, size ldap3-2.6.1-py2.7.egg (829.7 kB)||File type Egg||Python version 2.7||Upload date||Hashes View hashes|
|Filename, size ldap3-2.6.1-py2.py3-none-any.whl (417.4 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size ldap3-2.6.1-py3.7.egg (829.0 kB)||File type Egg||Python version 3.7||Upload date||Hashes View hashes|
|Filename, size ldap3-2.6.1.tar.gz (378.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
|Filename, size ldap3-2.6.1.win-amd64.exe (994.3 kB)||File type Windows Installer||Python version any||Upload date||Hashes View hashes|
Hashes for ldap3-2.6.1-py2.py3-none-any.whl