[python-ldap] How do i know if bind was successful?

Anurag Chourasia anurag.chourasia at gmail.com
Mon Apr 22 03:18:31 CEST 2013


Dear Friends,

I am exploring python-ldap and I have the following question.

I am testing using ADAM on Windows XP.

How could i know if my bind request was successful. This is my session
transcript.

>>> import ldap
>>> l=ldap.initialize('ldap://localhost:389')
>>> who="CN=achourasia,OU=Appl
Groups,OU=Central,OU=CL,DC=cencosud.corp,O=App,C=US"
>>> cred="Jaisai1"
>>> result=l.bind(who,cred)
>>> l.result(result)
(97, [])
>>>

What is 97 above supposed to mean? When a exception is not thrown then does
it mean that the request was successful?

Please guide.

Regards,
Guddu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20130421/b5e95b6c/attachment.html>


More information about the python-ldap mailing list