[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Login with email ?



> Hello!
>
> 	Is it possible to use email to login to LDAP ?
> I'm working on mail management panel where users are identified by
> emails. Now I'm searching tree for DN of particular email and then I'm
> logging with DN and password, but I'd like to avoid this search if
> possible...

Yes: use SASL (e.g. DIGEST-MD5), and map the email address to the user's
DN using authz-regexp; for example

authz-regexp "^uid=([^,]+),.*" "ldap:///dc=example,dc=com??sub?(mail=$1)"

p.