[Dovecot] Multiple "mail" field in one LDAP account

Proskurin Kirill k.proskurin at fxclub.org
Thu Oct 16 13:18:55 EEST 2008


Timo Sirainen wrote:
> On Oct 16, 2008, at 12:09 PM, Proskurin Kirill wrote:
> 
>> pass_attrs = mail=user,userPassword=password
> 
> You could remove the mail=user here and instead set 
> auth_username_format=%Lu to make sure the username is lowercased.

Thanks Timo - seems this work!
But now im don`t really understand how he lookup user name in LDAP now.

Thunder bird send credentials:
login: sysadmin at domain.off
pass: 123

Dovecot makes LDAP lookup and search user with such pass in userPassword 
and such login in were?

Info: auth(default): ldap(sysadmin at domain.off,172.16.1.80): pass search: 
base=dc=CAS scope=subtree 
filter=(&(objectClass=mailUser)(mail=sysadmin at domain.off)) 
fields=userPassword

Info: auth(default): ldap(sysadmin at domain.off,172.16.1.80): result: 
userPassword(password)=<hidden>

Info: auth(default): client out: OK    1       user=sysadmin at domain.off

-- 
Best regards,
Proskurin Kirill


More information about the dovecot mailing list