[Dovecot] Problem using LDAP generating Userhome
Timo Sirainen
tss at iki.fi
Wed Dec 9 22:37:19 EET 2009
On Tue, 2009-11-24 at 15:03 +0100, Thorsten Habich wrote:
> Hi there,
> I'm trying to let dovecot generate the userhome directory dynamicly via
> user_attr.
> If "uid" is returned from LDAP before "mail" everything is fine, but if
> "mail" is delivered
> before "uid" the localpart of the mailaddress is used in home path.
>
> e.g.:
> Mail: testuser at domain.de
> UID : test123
>
> sometimes home is /mail/store/testuser and sometimes /mail/store/test123
> depending
> on the order the ldap server replies.
I don't think there's a good way to solve this currently.
> pass_attrs =
> uid=user,userPassword=password,mailMessageStore=home=%$/telefonica.de/%Ln,mailFilterStore=sieve_dir=%$/telefonica.de/%Ln
Do mailMessageStore and mailFilterStore return different directories? If
not, maybe you could just put those settings into plugin {} section.
Then the %Ln is guaranteed to be what you want.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091209/b07c47d7/attachment.bin
More information about the dovecot
mailing list