python-ldap 3.4.5


pip install python-ldap

  Latest version

Released: Oct 10, 2025


Meta
Author: python-ldap project
Requires Python: >=3.6

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • System Administrators

Operating System
  • OS Independent
  • MacOS :: MacOS X
  • Microsoft :: Windows
  • POSIX

Programming Language
  • C
  • Python
  • Python :: 3
  • Python :: 3.6
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Database
  • Internet
  • Software Development :: Libraries :: Python Modules
  • System :: Systems Administration :: Authentication/Directory :: LDAP

License
  • OSI Approved :: Python Software Foundation License

What is python-ldap?

python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. Mainly it wraps the OpenLDAP client libs for that purpose.

Additionally the package contains modules for other LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 sub-schema, etc.).

Not included: Direct BER support

See INSTALL for version compatibility

See TODO for planned features. Contributors welcome.

For module documentation, see:

https://www.python-ldap.org/

Quick usage example:

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=*")

See directory Demo/ of source distribution package for more example code.

Author(s) contact and documentation:

https://www.python-ldap.org/

If you are looking for help, please try the mailing list archives first, then send a question to the mailing list. Be warned that questions will be ignored if they can be trivially answered by referring to the documentation.

If you are interested in helping, please contact the mailing list. If you want new features or upgrades, please check the mailing list archives and then enquire about any progress.

Acknowledgements:

Thanks to Konstantin Chuguev <Konstantin.Chuguev at dante.org.uk> and Steffen Ries <steffen.ries at sympatico.ca> for working on support for OpenLDAP 2.0.x features.

Thanks to Michael Stroeder <michael at stroeder.com> for the modules ldif, ldapurl, ldap/schema/*.py, ldap/*.py and ldap/controls/*.py.

Thanks to Hans Aschauer <Hans.Aschauer at Physik.uni-muenchen.de> for the C wrapper schema and SASL support.

Thanks to Mauro Cicognini <mcicogni at siosistemi.it> for the WIN32/MSVC6 bits, and the pre-built WIN32 ldap.pyd.

Thanks to Waldemar Osuch <waldemar.osuch at gmail.com> for contributing the new-style docs based on reStructuredText.

Thanks to Torsten Kurbad <torsten at tk-webart.de> for the easy_install support.

Thanks to James Andrewartha <jamesa at daa.com.au> for significant contribution to Doc/*.tex.

Thanks to Rich Megginson <rmeggins at redhat.com> for extending support for LDAPv3 controls and adding support for LDAPv3 extended operations.

Thanks to Peter Gietz, DAASI for funding some control modules.

Thanks to Chris Mikkelson for various fixes and ldap.syncrepl.

These very kind people have supplied patches or suggested changes:

  • Federico Di Gregorio <fog at mixadlive.com>

  • John Benninghoff <johnb at netscape.com>

  • Donn Cave <donn at u.washington.edu>

  • Jason Gunthorpe <jgg at debian.org>

  • gurney_j <gurney_j at 4j.lane.edu>

  • Eric S. Johansson <esj at harvee.billerica.ma.us>

  • David Margrave <davidma at premier1.net>

  • Uche Ogbuji <uche.ogbuji at fourthought.com>

  • Neale Pickett <neale at lanl.gov>

  • Blake Weston <weston at platinum1.cambridge.scr.slb.com>

  • Wido Depping <wido.depping at gmail.com>

  • Deepak Giridharagopal <deepak at arlut.utexas.edu>

  • Ingo Steuwer <steuwer at univention.de>

  • Andreas Hasenack <ahasenack at terra.com.br>

  • Matej Vela <vela at debian.org>

These people contributed to Python 3 porting (at https://github.com/pyldap/):

  • ​A. Karl Kornel

  • Alex Willmer

  • Aymeric Augustin

  • Bradley Baetz

  • Christian Heimes

  • Dirk Mueller

  • Jon Dufresne

  • Martin Basti

  • Miro Hrončok

  • Paul Aurich

  • Petr Viktorin

  • Pieterjan De Potter

  • Raphaël Barrois

  • Robert Kuska

  • Stanislav Láznička

  • Tobias Bräutigam

  • Tom van Dijk

  • Wentao Han

  • William Brown

Thanks to all the guys on the python-ldap mailing list for their contributions and input into this package.

Thanks! We may have missed someone: please mail us if we have omitted your name.

Licence

The python-ldap project comes with a LICENCE file.

We are aware that its text is unclear, but it cannot be changed: all authors of python-ldap would need to approve the licence change, but a complete list of all the authors is not available. (Note that the Git repository of the project is incomplete. Furthermore, commits imported from CVS lack authorship information; users “stroeder” or “leonard” are commiters (reviewers), but sometimes not authors of the committed code.)

The current maintainers assume that the license is the sentence that refers to “Python-style license” and assume this means a highly permissive open source license that only requires preservation of the text of the LICENCE file (including the disclaimer paragraph).


All contributions committed since July 1st, 2021, as well as some past contributions, are licensed under the MIT license. The MIT licence and more details are listed in the file LICENCE.MIT.

3.4.5 Oct 10, 2025
3.4.4 Nov 17, 2023
3.4.3 Sep 20, 2022
3.4.2 Jul 06, 2022
3.4.0 Nov 26, 2021
3.3.1 Jun 29, 2020
3.3.0 Jun 18, 2020
3.2.0 Mar 13, 2019
3.1.0 May 25, 2018
3.0.0 Mar 13, 2018
3.0.0b4 Jan 10, 2018
3.0.0b3 Dec 20, 2017
3.0.0b2 Dec 11, 2017
3.0.0b1 Dec 04, 2017
2.5.2 Nov 20, 2017
2.5.1 Nov 12, 2017
2.4.45 Oct 09, 2017
2.4.44 Sep 07, 2017
2.4.43 Sep 06, 2017
2.4.42 Sep 04, 2017
2.4.41 Jul 12, 2017
2.4.40 Jun 27, 2017
2.4.39 May 31, 2017
2.4.38 Apr 28, 2017
2.4.37 Apr 27, 2017
2.4.36 Apr 26, 2017
2.4.35 Apr 25, 2017
2.4.33 Apr 25, 2017
2.4.32 Feb 14, 2017
2.4.31 Feb 14, 2017
2.4.30 Feb 08, 2017
2.4.29 Jan 25, 2017
2.4.28 Nov 18, 2016
2.4.27 Aug 01, 2016
2.4.26 Jul 24, 2016
2.4.25 Jan 18, 2016
2.4.22 Oct 24, 2015
2.4.21 Sep 25, 2015
2.4.20 Jul 07, 2015
2.4.19 Jan 10, 2015
2.4.18 Oct 09, 2014
2.4.17 Sep 27, 2014
2.4.16 Sep 10, 2014
2.4.15 Mar 24, 2014
2.4.14 Jan 31, 2014
2.4.13 Jun 27, 2013
2.4.12 May 29, 2013
2.4.10 Jun 07, 2012
2.4.9 Mar 14, 2012
2.4.8 Feb 21, 2012
2.4.7 Jan 19, 2012
2.4.6 Nov 27, 2011
2.4.5 Nov 25, 2011
2.4.4 Oct 26, 2011
2.4.3 Jul 23, 2011
2.4.2 Jul 21, 2011
2.4.1 Jul 05, 2011
2.4.0 Jun 02, 2011
2.3.13 Feb 19, 2011
2.4.8.win32 Feb 27, 2012
2.4.7.win32 Jan 30, 2012
2.4.6.win32 Dec 03, 2011
2.4.44.win32 Sep 10, 2017
2.4.41.win32 Jul 22, 2017
2.4.4.win32 Oct 28, 2011
2.4.39.win32 Jun 05, 2017
2.4.38.win32 May 10, 2017
2.4.32.win32 Feb 20, 2017
2.4.3.win32 Jul 24, 2011
2.4.29.win32 Feb 04, 2017
2.4.28.win32 Nov 26, 2016
2.4.27.win32 Sep 10, 2016
2.4.25.win32 Jan 27, 2016
2.4.22.win32 Nov 08, 2015
2.4.21.win32 Oct 04, 2015
2.4.20.win32 Jul 26, 2015
2.4.19.win32 Jan 17, 2015
2.4.18.win32 Oct 09, 2014
2.4.16.win32 Sep 21, 2014
2.4.15.win32 Mar 24, 2014
2.4.13.win32 Jul 04, 2013
2.4.12.win32 Jun 12, 2013
2.4.10.win32 Jun 13, 2012
2.4.0.win32 Jun 03, 2011
2.3.13.win32 Feb 26, 2011
Extras: None
Dependencies:
pyasn1 (>=0.3.7)
pyasn1_modules (>=0.1.5)