> Try adding both > > skip=notfound >
> and
>
> result_failure = continue-ok
>
> to ignore the not found error, to the override db.
Hi Aki,hi everyone,
Excuse me for this late answer.
It still doesn't work ...
I've try to reproduce this in a fresh new lab environnement (same distro, same
Dovecot version, fresh/standard Dovecot config files...) and i got exactly the
same problem.
I've now 2 tests users :
"testm2m" and "testm1m"
testm2m is declared in "/etc/passwd" and "/etc/dovecot/dovecot_override"
testm1m is declared only in "/etc/passwd"
Content of "/etc/passwd" :
8<---------------------------------------------------------------
testm2m:x:1001:1001::/home/testm2m:/bin/false
testm1m:x:1002:1002::/home/testm1m:/bin/false
8<---------------------------------------------------------------
Content of "/etc/dovecot/dovecot_override"
8<---------------------------------------------------------------
testm2m:::::::userdb_mail=maildir:~/Maildir
8<---------------------------------------------------------------
Here is an extract of "doveconf -n" output :
8<---------------------------------------------------------------
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-186-generic x86_64 Ubuntu 16.04.7 LTS
auth_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
.
.
.
passdb {
driver = pam
}
userdb {
driver = passwd
result_success = continue-ok
}
userdb {
args = /etc/dovecot/dovecot_override
driver = passwd-file
result_failure = continue-ok
skip = notfound
}
8<---------------------------------------------------------------
When i try an "doveadm auth login testm2m" i got this output :
8<---------------------------------------------------------------
passdb: testm2m auth succeeded
extra fields:
user=testm2m
userdb extra fields:
testm2m
system_groups_user=testm2m
uid=1001
gid=1001
home=/home/testm2m
mail=maildir:~/Maildir
8<---------------------------------------------------------------
It's seem to be OK (mail=maildir:~/Maildir)
But when i try "doveadm auth login testm1m" i got this :
8<---------------------------------------------------------------
passdb: testm1m auth succeeded
extra fields:
user=testm1m
Error: Authenticated user not found from userdb, auth lookup id=3039428609
(client-pid=1760 client-id=1)
Error: userdb lookup failed: Internal error occurred. Refer to server log for
more information.
8<---------------------------------------------------------------
It's seem that the user authentication is OK but not the userdb lookup ...
I got this in the log :
8<---------------------------------------------------------------
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: Loading modules from directory:
/usr/lib/dovecot/modules/auth
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: Wrote new auth token secret to
/var/run/dovecot/auth-token-secret.dat
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: passwd-file
/etc/dovecot/dovecot_override: Read 1 users in 0 secs
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: auth client connected (pid=1760)
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=doveadm#011resp=<hidden>
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: Loading modules from
directory: /usr/lib/dovecot/modules/auth
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: passwd-file
/etc/dovecot/dovecot_override: Read 1 users in 0 secs
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): lookup
service=dovecot
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): #1/1
style=1 msg=Password:
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: client passdb out:
OK#0111#011user=testm1m
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: master in:
REQUEST#0113039428609#0111760#0111#0114f7cc8989b7b02f678d5f08ab1d66b79#011session_pid=1760
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): lookup
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: passwd-file(testm1m): lookup:
user=testm1m file=/etc/dovecot/dovecot_override
Feb 17 12:18:43 ubuntu dovecot: auth: passwd-file(testm1m): unknown user
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: master userdb out:
NOTFOUND#0113039428609
8<---------------------------------------------------------------
If anyone has an idea ...
Thanks.
/Xavier
publickey - [email protected] - 0xC617DF73.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
