[Dovecot] userdb prefetch problem..
I have a setup that I'm working on migrating to Dovecot for thousands of users across a few dozen domains.. All users are authed from LDAP.. In LDAP, each user has a unique uidNumber, and varying gidNumber (for use in other applications) As far as mail storage, the entire Maildir structure is owned by UID/GID: vmail/vmail
So, the uidNumber/gidNumber from LDAP is not needed. global uid/gid is set to 'vmail'
When using "passdb ldap" and "userdb ldap" both pointing to dovecot-ldap.conf, and removing the "uidNumber=uid"..etc from the "_attrs" lines, this works just fine.
I would like to use "userdb prefetch" to use one less ldap query, but the uid/gid stuff is giving me some problems.
The appropriate line in - dovecot-ldap.conf: pass_attrs = mail=user,userPassword=password,homeDirectory=userdb_home
I get the following erros in the log:
.... .... dovecot: auth(default): prefetch(user@domain.com,127.0.0.1): userdb_uid not returned dovecot: auth(default): prefetch(user@domain.com,127.0.0.1): userdb_gid not returned dovecot: auth(default): userdb(user@domain.com,127.0.0.1): user not found from userdb dovecot: auth(default): master out: NOTFOUND 1 dovecot: pop3-login: Internal login failure: user=user@domain.com, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Any help is appreciated!
-Mike
FreeBSD 6-1-RELEASE OpenLDAP 2.3 Dovecot 1.0rc2
On 7/11/06, Mike cbrmike@gmail.com wrote:
I have a setup that I'm working on migrating to Dovecot for thousands of users across a few dozen domains.. All users are authed from LDAP.. In LDAP, each user has a unique uidNumber, and varying gidNumber (for use in other applications) As far as mail storage, the entire Maildir structure is owned by UID/GID: vmail/vmail
So, the uidNumber/gidNumber from LDAP is not needed. global uid/gid is set to 'vmail'
Would using a 'static' userdb instead of prefetch help?
e.g. # static settings generated from template userdb static { # Template for settings. Can return anything a userdb could normally # return, eg.: uid, gid, home, mail, nice # # A few examples: # # args = uid=500 gid=500 home=/var/mail/%u # args = uid=500 gid=500 home=/home/%u mail=mbox:/home/%u/mail nice=10 # args = uid=112 gid=112 quota=maildir:storage=10240 }
Tim
Linux Counter user #273956 Don't email joeblogs@scouts.org.au
On Mon, 2006-07-10 at 13:18 -0400, Mike wrote:
dovecot: auth(default): prefetch(user@domain.com,127.0.0.1): userdb_uid not returned dovecot: auth(default): prefetch(user@domain.com,127.0.0.1): userdb_gid not returned dovecot: auth(default): userdb(user@domain.com,127.0.0.1): user not found from userdb
I think this should do it: http://dovecot.org/list/dovecot-cvs/2006-August/006237.html
Or wait for rc7.
participants (3)
-
Mike
-
Timo Sirainen
-
Timothy White