Hello,
I'm testing passdb auth binds with dovecot 2.0.16, but for some reason dovedm
fails to work with the configuration showed below. The network trace shows the
successful bind for the administrative user (uid=mailapp), but nothing for the
mail user (uid=user001).
what am i missing here?
# doveadm mailbox list -u user001
doveadm(user001): Error: user user001: Auth PASS lookup failed
doveadm(user001): Fatal: passdb lookup failed
10-auth.conf:
====================
disable_plaintext_auth = no
auth_cache_size = 0
auth_cache_ttl = 0
auth_cache_negative_ttl = 0
auth_mechanisms = plain
!include auth-ldap.conf.ext
auth-ldap.conf.ext:
=====================================
passdb {
driver = ldap
args = /etc/dovecot/passdb-dovecot-ldap.conf.ext
}
userdb {
driver = ldap
args = /etc/dovecot/userdb-dovecot-ldap.conf.ext
}
passdb-dovecot-ldap.conf.ext:
=====================================
uris = ldap://ldap.example.com
dn = uid=mailapp,ou=People,dc=example,dc=com
dnpass = xxxxxxxxxx
sasl_bind = no
tls = no
auth_bind = yes
ldap_version = 3
base = dc=example,dc=com
deref = never
scope = subtree
pass_attrs = uid=user
pass_filter = (uid=%n)
userdb-dovecot-ldap.conf.ext:
====================================
uris = ldap://ldap.example.com
dn = uid=mailapp,ou=People,dc=example,dc=com
dnpass = xxxxxxxxxx
sasl_bind = no
tls = no
auth_bind = yes
ldap_version = 3
base = dc=example,dc=com
deref = never
scope = subtree
user_attrs =
mailbox=mail=maildir:/var/maildir/%$,homeFilter=home,mailQuota=quota_rule=*:bytes=%$
user_filter = (&(objectClass=posixAccount)(uid=%n))
pass_attrs = uid=user,userPassword=password,\
mailbox=userdb_mail=maildir:/var/maildir/%$,homeFilter=userdb_home,mailQuota=userdb_quota_rule=*:bytes=%$
pass_filter = (&(objectClass=posixAccount)(uid=%n))
iterate_attrs = uid=user
iterate_filter = (objectClass=posixMailAccount)