auth with python-ldap

Michael Ströder michael at
Thu Jul 7 18:22:47 CEST 2005

jean-marc.pouchoulon at wrote:
> I'de like to autorize a user to go into a web application.
> anonymous bind is allowing, also a bind is always sucessfull.
> How can I test if a user is valid with simplebind ?

You simply bind with the user's DN and his password.

> ldapserver = sun  directory server 5.2
> passwd use shadow

Your local system's password checking is not relevant. Basically one
sets the userPassword value in the user's entry.

Ciao, Michael.

More information about the python-ldap mailing list