views:

172

answers:

2

Hello all. 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?

Thanks everyone, I love you

A: 

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

janglin
A: 

A couple days ago I posted some code for accessing LDAP using win32com and ADO in this thread:

http://stackoverflow.com/questions/1982442/does-python-3-have-ldap-module/1986019#1986019

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

Todd