Python-LDAP integration [closed]
I need to integrate Python with LDAP. I just need to choose the best way to make Python talk to LDAP. I understand there are many ways to do this, including using a prebuilt toolkit such as the AuthKit or writing a thing ourselves with LDAP modules and functions. What do you recommend?
I have successfully used the python-ldap library to communicate with LDAP servers and Windows Active Directory. You can download it from pypi here http://pypi.python.org/pypi/python-ldap/2.3.10
A couple days ago I posted some code for accessing LDAP using win32com and ADO in this thread:
Does Python 3 have LDAP module?
It's for Python 3, but can be used in 2 if you redo the print functions to be statements.
Also, as mentioned in the comments on that thread, check PyPI for a list of other LDAP modules:
http://pypi.python.org/pypi?%3Aaction=search&term=ldap&submit=search
The package pointed to by Mr. janglin is very effective A good series of articles by Matt Butcher, link to first one http://www.packtpub.com/article/installing-and-configuring-the-python-ldap-library-and-binding-to-an-ldap-directory
python-ldap site is http://www.python-ldap.org/ It has links to code, documentation and examples.
Cheerio
Aalok
精彩评论