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 at domain.com,127.0.0.1): userdb_uid not returned dovecot: auth(default): prefetch(user at domain.com,127.0.0.1): userdb_gid not returned dovecot: auth(default): userdb(user at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20060710/7062fe2d/attachment.html>
On 7/11/06, Mike <cbrmike at 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 at scouts.org.au
On Mon, 2006-07-10 at 13:18 -0400, Mike wrote:> dovecot: auth(default): prefetch(user at domain.com,127.0.0.1): > userdb_uid not returned > dovecot: auth(default): prefetch(user at domain.com,127.0.0.1): > userdb_gid not returned > dovecot: auth(default): userdb(user at domain.com,127.0.0.1): user not > found from userdbI think this should do it: http://dovecot.org/list/dovecot-cvs/2006-August/006237.html Or wait for rc7. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060810/d41b761c/attachment.bin>