[Dovecot] LDAP + mail_location: Get "%d" from customfield
Timo Sirainen
tss at iki.fi
Mon Aug 2 15:10:02 EEST 2010
On Mon, 2010-08-02 at 10:08 +0200, Denny Schierz wrote:
> > pass_attrs = .., postAddress=domain
> >
> > Assuming v1.1+. This changes the username to user at domain everywhere.
>
> thanks for helping :-) But, it doesn't work:
>
> ldap.conf:
>
> user_attrs = postalAddress=domain,homeDirectory=/imap/spool/%d/%1n/%n
> user_filter = (&(objectClass=posixAccount)(uid=%n))
OK, there is a bug/missing feature that this doesn't work with
user_attrs.
> pass_attrs = postalAddress=domain, uid=user, userPassword=password
> pass_filter = (&(objectClass=posixAccount)(uid=%n))
This would work, except I guess you're using auth binds and have also
set auth_bind_userdn? Since according to your logs, it doesn't even
attempt to do this passdb lookup from ldap.
More information about the dovecot
mailing list