Python-LDAP integration [closed]

牧云@^-^@ 提交于 2019-12-30 07:15:04

问题


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?


回答1:


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




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/2023725/python-ldap-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!