example of python-ldap module

Jun Ding Jun.Ding at microfocus.com
Fri Oct 18 23:33:34 CEST 2002


Could some body give me a short python exmple of how to use this module? I
can't find any doc for how to use it, all docs I can find is C example. I
installed a Windows 2k active direction ldap server on 10.20.30.100, and I
can do that:
>>> import ldap
>>> l = ldap.open("10.20.30.100")
>>> l.simple_bind("test","test")
1
>>>
Then what? like how can I get the value of "test" user's Last name? or how
can I set some values back to my ldap server? Thanks.





More information about the python-ldap mailing list