doveconf -n output is ordinarily required

however, at a guess, you have not defined auth_master_user_separator

On 08/11/2013 20:05, Jakub Krzyżewski wrote:
Hello.

I have problem as below:

Nov  8 10:41:52 store1 dovecot: auth: Debug:
auth([email protected],::1,master,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
Master user lookup for login: [email protected]
Nov  8 10:41:52 store1 dovecot: auth: Debug:
passwd-file([email protected],::1,master,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
lookup: [email protected] file=/etc/dovecot/master-use
rs
Nov  8 10:41:52 store1 dovecot: auth: Debug:
password([email protected],::1,master,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
Generating DIGEST-MD5 from user 'master', password 'test'
Nov  8 10:41:52 store1 dovecot: auth:
passdb([email protected],::1,master,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
Master user logging in as [email protected]
Nov  8 10:41:52 store1 dovecot: auth: Debug:
ldap([email protected],::1,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>): pass
search: base=dc=example,dc=com scope=subtree
filter=(&(locMailActive=TRUE)(|
([email protected])(uid=jkrzyz)([email protected])))
fields=mailRoutingAddress,userPassword
Nov  8 10:41:52 store1 dovecot: auth: Debug:
ldap([email protected],::1,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
result: [email protected] userPassword=test2
Nov  8 10:41:52 store1 dovecot: auth: Debug:
password([email protected],::1,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
Generating DIGEST-MD5 from user 'master', password 'test2'
Nov  8 10:41:52 store1 dovecot: auth: Debug:
password([email protected],::1,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
Credentials: d64221d543d7c9a809c7d6e424d87be8
Nov  8 10:41:52 store1 dovecot: auth:
digest-md5([email protected],::1,</qEuMafqyAAAAAAAAAAAAAAAAAAAAAAB>):
password mismatch

As you can see, password is check against user passdb and not
passwd-file, where master's password is stored.
Test is password of master user, test2 is password of jkrzyz
Setting pass=yes or no makes no difference.
What is wrong with my config?

dovecot --version
2.1.7

dovecot.conf snippet:

passdb {
  args = scheme=PLAIN /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}

/etc/dovecot/master-users:

master:{PLAIN}test
[email protected]:{PLAIN}test

Reply via email to