Ooops, this didn't go to the list
-------- Original Message -------- Subject: Re: [Dovecot] Supporting local and virtual LDAP users, with seperate mail_env Date: Thu, 17 Aug 2006 11:33:51 -0700 From: Tim Schafer tim_schafer@shipfsp.com To: Timo Sirainen tss@iki.fi References: 44E4A543.3070100@shipfsp.com 1155837188.9142.8.camel@hurina 44E4AEF1.70202@shipfsp.com 1155838393.9142.21.camel@hurina
I'm running rc6 The user_attrs = uid=user alone isn't doing the trick
I also tried changing default_mail_env = maildir:/home/exim/%n/.maildir to default_mail_env = maildir:/home/exim/%u/.maildir
dovecot.conf: listen = [::] disable_plaintext_auth = no ssl_disable = yes default_mail_env = maildir:/home/exim/%u/.maildir namespace private { separator = . prefix = INBOX. inbox = yes } mail_debug = yes first_valid_uid = 0 protocol imap { } protocol pop3 { } protocol lda { postmaster_address = postmaster@example.com } auth_username_chars = abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain passdb shadow { } passdb ldap { args = /etc/dovecot-ldap.conf } userdb passwd { } userdb ldap { args = /etc/dovecot-ldap.conf } user = root } dict { } plugin { }
dovecot-ldap.conf: hosts = localhost auth_bind = yes auth_bind_userdn = cn=%n,ou=people,dc=domain,dc=com ldap_version = 3 base = ou=people,dc=domain,dc=com scope = subtree user_attrs = uid=user user_filter = (&(objectClass=uidObject)(cn=%n)) user_global_uid = mail user_global_gid = mail
Regards, Tim Schafer Information Technology Logistics Easier with Technology
Freight Solution Providers direct 916-376-6190 10453 Old Placerville Road fax 916-376-6156 Sacramento, CA 95827 tim_schafer@shipfsp.com
Timo Sirainen said the following on 8/17/2006 11:13 AM:
On Thu, 2006-08-17 at 11:01 -0700, Tim Schafer wrote:
Thank you Timo,
I changed default_mail_env = maildir:/home/exim/%n/.maildir
I may not have to support local users
But I'm still running into the problem that the user authenticates as Firstname Lastname which is the cn in LDAP but the uid in LDAP, which would be something like flastname needs to be used for mail location.
Is there a way to use the uid in LDAP to specify the mail location, without modifying the current LDAP database to include the full path?
It would have been easier to answer if you had given your dovecot-ldap.conf settings. But if "uid" in LDAP contains the short form, then giving pass_attrs = uid=user,.. should help. Although that was also there by default..
--
Regards, Tim Schafer Information Technology Logistics Easier with Technology
Freight Solution Providers direct 916-376-6190 10453 Old Placerville Road fax 916-376-6156 Sacramento, CA 95827 tim_schafer@shipfsp.com