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:
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=*")
Demo/ of source distribution package for more
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
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
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
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:
These people contributed to Python 3 porting (at https://github.com/pyldap/):
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.