On Dec 5, 2008, at 1:21 AM, Romer Ventura wrote:> At the moment the home folders are being created in: > /home/vmail/DOMAIN.COM/%Ln and it worked great with kerberos, but > with LDAP > the domain part is missingSo use %n instead of %u in the LDAP's pass/user_filter lookup.> so I did the following: > Auth_username_format = %Ln..> The domain was missing.. > > So does it mean that auth_username_format dictates what dovecot will > use, > not only for the authentication part, but for everything else as > well..?Yes. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081205/95e2eecb/attachment-0002.bin>
Hello again, I have change authentication to LDAP from Kerberos due to recent changes to my plans and I am having a little problem getting the malbox created in desired path. At the moment the home folders are being created in: /home/vmail/DOMAIN.COM/%Ln and it worked great with kerberos, but with LDAP the domain part is missing so I did the following: Auth_username_format = %Ln Then I did: # telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user test4 at domain.com +OK pass password +OK Logged in. But I saw in the logs the following: dovecot: auth(default): master out: USER 1 test4 uid=1001 gid=1000 home=/home/vmail//test4 The domain was missing.. So does it mean that auth_username_format dictates what dovecot will use, not only for the authentication part, but for everything else as well..? To me it seems that once the username has been formatted it forgets everything that doesn?t constitute part of the specified format. Or am I misunderstanding the entire concept..? How cant I preserve the domain part so that the homes can be placed in the desired location: /home/vmail/%d/%u...? Thanks