Python LDAP Applications
Around the time the book Mastering OpenLDAP by Matt Butcher was released, Packt published a series of Matt's articles entitled, collectively, Python LDAP Applications.
The first article introduces Python developers to the excellent LDAP library available for Python. The article also discusses binding (connecting) to a server, authenticating, and executing queries. It also covers using SASL-based authentication and handling exceptions. At the end of the article, the author presents a short script that uses the LDAP "Who Am I?" operation to get information about the current user. Read more.
Progressing to more complicated topics, the second article discusses the common LDAP operations, and how each can be leveraged from within the Python API. The focus of the article is on using comparison and searching functions. A new library, LDAPHelper, is created. At the end of the article the author presents a short program illustrating how the Python LDAP library can be used to dump the contents of an LDAP record. Read more.
The third installment continues where the second left off. More LDAP operations are covered, including Add, Delete, Modify, and ModRDN. This chapter is rounded out by a short discussion of the LDAP URL library, a component of the Python LDAP library. This component assists developers in constructing well-formed LDAP URLs. Read more.
In the final segment of this four-part series, the author introduces the Python LDAP schema library. Schemas in LDAP have the reputation for being complex to write and difficult to work with. This article shows how the Python API can be used to make working with LDAP schemata much easier. At the end of this article, the author presents a short script that suggests attributes based on a schema. Read more.
Twittersphere
jedijeff (Jeff Jobb)
Day 1 of my LDAP course is finished, all I really know is I am not good at Unix and typing
davidlmorris (David L Morris)
Win7 LDAP connection issues fixed (sort of). On Win2003 Srv ,set Net sec local pol, 'No min' for NTLM SSP Servers.
arreyder (Christopher R Rhodes)
@pctony Pretty hairy mess there for a bit. Way to stick with it. When its all said and done people will kneel before the LDAP king.








