determining if bind successful

Michael Ströder michael at stroeder.com
Thu May 1 18:35:31 CEST 2003


Michael Engelhart wrote:
> class LDAPWrapper:
> 
>     def __init__(self, user="", password=""):
>         try:
>             self.server = ldap.open("127.0.0.1")
>             self.server.simple_bind(user, password)

Note also that 'user' has to be a complete DN of an existing entry!

Ciao, Michael.



More information about the python-ldap mailing list