[Dovecot] lda bug: multiple passdb ignored
Greetings.
When dovecot configured to use multiple passdb and static userdb as:
#password database in multiple ldap subtree passdb { driver = ldap args = /usr/local/etc/dovecot/dv-ldap-real.conf } passdb { driver = ldap args = /usr/local/etc/dovecot/dv-ldap-virtual.conf }
userdb { driver = static args = uid=pop gid=mailnull }
all works fine but...
When LDA deliver mail it check passdb but only first appeared in configuration:
18.09.2012 15:00:18 auth: Debug: master in: USER 1 info@zzz.zz service=lda 18.09.2012 15:00:18 auth: Debug: cache(info@zzz.zz): miss 18.09.2012 15:00:18 auth: Debug: ldap(info@zzz.zz): pass search: base=ou=account,ou=it,dc=planar,dc=local scope=subtree filter=(&(objectClass=x-mailUser)(uid=info)) fields=x-mailPassword 18.09.2012 15:00:18 lda: Debug: auth input: 18.09.2012 15:00:18 auth: Debug: cache(info@planar.spb.ru): hit: 18.09.2012 15:00:18 auth: Debug: master out: NOTFOUND 1 1
P.S. dovecot version 2.1.7 sysytem x86 FreeBSD 9.0
Hello Timo,
Tuesday, September 18, 2012, 8:04:06 PM, you wrote:
TS> On 18.9.2012, at 14.04, Алексей Панкратов wrote:
passdb { driver = ldap args = /usr/local/etc/dovecot/dv-ldap-virtual.conf }
TS> Does dv-ldap-virtual.conf have auth_bind=yes?
No. All ldap connection configured to use one prescribed ldap binding.
P.S. Thank you for your work.
-- Best regards, Anthony mailto:ap00@mail.ru
On 18.9.2012, at 14.04, Алексей Панкратов wrote:
When dovecot configured to use multiple passdb and static userdb as: .. all works fine but...
When LDA deliver mail it check passdb but only first appeared in configuration:
18.09.2012 15:00:18 auth: Debug: master in: USER 1 info@zzz.zz service=lda 18.09.2012 15:00:18 auth: Debug: cache(info@zzz.zz): miss 18.09.2012 15:00:18 auth: Debug: ldap(info@zzz.zz): pass search: base=ou=account,ou=it,dc=planar,dc=local scope=subtree filter=(&(objectClass=x-mailUser)(uid=info)) fields=x-mailPassword 18.09.2012 15:00:18 lda: Debug: auth input: 18.09.2012 15:00:18 auth: Debug: cache(info@planar.spb.ru): hit: 18.09.2012 15:00:18 auth: Debug: master out: NOTFOUND 1 1
This was an interesting bug. Fixed: http://hg.dovecot.org/dovecot-2.1/rev/c38060f0ad58
Hello Timo,
Tuesday, September 18, 2012, 8:58:53 PM, you wrote:
TS> On 18.9.2012, at 14.04, Алексей Панкратов wrote:
When dovecot configured to use multiple passdb and static userdb as: TS> .. all works fine but...
When LDA deliver mail it check passdb but only first appeared in configuration:
18.09.2012 15:00:18 auth: Debug: master in: USER 1 info@zzz.zz service=lda 18.09.2012 15:00:18 auth: Debug: cache(info@zzz.zz): miss 18.09.2012 15:00:18 auth: Debug: ldap(info@zzz.zz): pass search: base=ou=account,ou=it,dc=planar,dc=local scope=subtree filter=(&(objectClass=x-mailUser)(uid=info)) fields=x-mailPassword 18.09.2012 15:00:18 lda: Debug: auth input: 18.09.2012 15:00:18 auth: Debug: cache(info@planar.spb.ru): hit: 18.09.2012 15:00:18 auth: Debug: master out: NOTFOUND 1 1
TS> This was an interesting bug. Fixed: http://hg.dovecot.org/dovecot-2.1/rev/c38060f0ad58
Thank you very much.
-- Best regards, Anthony mailto:ap00@mail.ru
participants (3)
-
Anthony Pankov
-
Timo Sirainen
-
Алексей Панкратов