On 11/22/2010 10:43 AM, Timo Sirainen wrote:
On Sun, 2010-11-21 at 19:15 -0800, Daniel L. Miller wrote:
I previously had a static userdb and an ldap passdb. Everything's been
working fine, both 1.2 and 2.0 - but now I need to support the nightly
mdbox purge operation. I added the iterate params to my ldap
configuration, but (I'm guessing) that with a defined static userdb it
won't work.
You could add userdb ldap after the userdb static. I think only
iteration will use it.
I think I got it - probably by accident. Just because it's actually
working doesn't mean it's *correct* - does this look right? Do I have
redundant/obsolete parms specified?
passdb {
driver = ldap
args = /usr/local/etc/dovecot/dovecot-ldap.conf
}
userdb {
driver = prefetch
}
userdb {
driver = ldap
# symlink to dovecot-ldap.conf
args = /usr/local/etc/dovecot/dovecot-ldap-userdb.conf
}
## static userdb removed
/usr/local/etc/dovecot/dovecot-ldap.conf
hosts = ldap.amfeslan.local
dn = xxx
dnpass = xxx
auth_bind = yes
auth_bind_userdn = uid=%n,ou=users,dc=amfeslan,dc=local
ldap_version = 3
base = ou=Users, dc=amfeslan, dc=local
user_attrs = =home=/var/mail/%d/%n, \
=mail=mdbox:/var/mail/%d/%n/mdbox, \
=uid=vmail, \
=gid=mail
user_filter = (&(objectClass=inetOrgPerson)(mail=%u))
pass_attrs = mail=user, \
userPassword=password, \
=userdb_home=/var/mail/%d/%n, \
=userdb_mail=mdbox:/var/mail/%d/%n/mdbox, \
=userdb_uid=vmail, \
=userdb_gid=mail
pass_filter = (&(objectClass=inetOrgPerson)(mail=%u))
iterate_attrs = mail=user
iterate_filter = (&(objectClass=inetOrgPerson)(mail=*))
--
Daniel