[Dovecot] ldap login with userid
Timo Sirainen
tss at iki.fi
Fri Jan 22 17:52:46 EET 2010
On Fri, 2010-01-22 at 16:42 +0100, spamvoll at googlemail.com wrote:
> currently im using:
> user_attrs = homeDirectory=home,uid=mail=maildir:/mail/%$
> user_filter = (&(objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)))
> to match the mailaddress and deliver the mail to the users homdir
> (/mail/uid_of_the_user)
>
> But i cant login to dovecot:
> pass_attrs = uid=user,userPassword=password
> pass_filter = (&(objectClass=gosaMailAccount)(uid=%u))
passdb lookup succeeds, because uid=%u matches. But then you're doing a
userdb lookup from mail or gosaMailAlternateAddress, instead of from uid
field like with passdb.
Two possibilities I guess:
a) add |(uid=%u) to user_filter
b) Change username to gosaMailAccount's value in passdb lookup, by
using:
pass_attrs = gosaMailAccount=user,userPassword=password
Dunno which one would be correct in your case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20100122/e23beed5/attachment.bin
More information about the dovecot
mailing list