I'm trying to setup dovecot to work with an existing virtual user database in LDAP in order to replace courier-imap. I have users in LDAP with dn of the following form cn=Firstname Lastname,ou=company,dc=domain,dc=com and the uid attribute containes a userid of the form flastname The on disk format for an account is: /home/exim/<uid>/.maildir My first problem is that I cannot get dovecot to authenticate the existing DNs It complains: dovecot: auth(default): plain(?,ipaddress): Username contains disallowed characters I'm assuming it doesn't like the spaces. Any way around this? Also, I don't see any way to support the seperate username and userid where the username is for authentication and the userid is used for on disk pathname. Anyway to support this? Thanks in advance. -- Regards, Tim Schafer
On Wed, 2006-08-16 at 18:14 -0700, Tim Schafer wrote:> I'm assuming it doesn't like the spaces. > Any way around this?You can set the allowed characters somehow. I forgot how, but check the annotated config file.> Also, I don't see any way to support the seperate username and userid > where the username is for authentication > and the userid is used for on disk pathname. > Anyway to support this?I know with SQL that's possible by just returning user= from the query, I guess LDAP as well. I think Timo just posted about this in some other ldap thread. Not quite sure though. Sorry to be so vague, I just happened to have skimmed some messages that seem to related to this recently. johannes
Apparently Analagous Threads
- dovecot Digest, Vol 40, Issue 65
- [Fwd: Re: Supporting local and virtual LDAP users, with seperate mail_env]
- Supporting local and virtual LDAP users, with seperate mail_env
- [Fwd: dovecot-1.0_rc7 crashes (Login process died too early) with repeated deletes from thunderbird]
- forward flag metadata