[Dovecot] LDAP usernames with spaces
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
Thank you Johannes,
By modifying auth_username_chars in dovecot.conf I was able to allow spaces in usernames.
Regards, Tim Schafer
Johannes Berg said the following on 8/17/2006 12:24 AM:
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
participants (2)
-
Johannes Berg
-
Tim Schafer