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 at zzz.zz
???? service=lda
18.09.2012 15:00:18 auth: Debug: cache(info at zzz.zz): miss
18.09.2012 15:00:18 auth: Debug: ldap(info at 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 at 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
On 18.9.2012, at 14.04, ??????? ????????? wrote:> passdb { > driver = ldap > args = /usr/local/etc/dovecot/dv-ldap-virtual.conf > }Does dv-ldap-virtual.conf have auth_bind=yes?
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 at 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 at zzz.zz service=lda > 18.09.2012 15:00:18 auth: Debug: cache(info at zzz.zz): miss > 18.09.2012 15:00:18 auth: Debug: ldap(info at 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 at planar.spb.ru): hit: > 18.09.2012 15:00:18 auth: Debug: master out: NOTFOUND 1 1This 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 at zzz.zz service=lda >> 18.09.2012 15:00:18 auth: Debug: cache(info at zzz.zz): miss >> 18.09.2012 15:00:18 auth: Debug: ldap(info at 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 at planar.spb.ru): hit: >> 18.09.2012 15:00:18 auth: Debug: master out: NOTFOUND 1 1TS> This was an interesting bug. Fixed: http://hg.dovecot.org/dovecot-2.1/rev/c38060f0ad58 Thank you very much. -- Best regards, Anthony mailto:ap00 at mail.ru