开发者

Python-LDAP integration [closed]

As it currently stands, this question is not a good fit f开发者_JAVA百科or our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜