On Wed, 9 Dec 2009, Marten Lehmann wrote:
How do I tell OpenLDAP to authenticate against cn=<login>,ou=users,dc=mail and its userPassword attribute?
Depends slightly on what program from the OpenLDAP Software you're using, but one simple example would be:
$ ldapwhoami -xH ldap://server.host.domain:port/ -D "cn=<login>,ou=users,dc=mail" -w secret
where "secret" is the cleartext (i.e. not hashed, and not base64) of the credentials stored in cn=<login>'s userPassword.