[Dovecot] Authentication issue.
dmitri tchernov
mitia.tchernov at gmail.com
Sat Dec 18 03:19:36 EET 2010
On Fri, Dec 17, 2010 at 7:57 PM, Pascal Volk <
user+dovecot at localhost.localdomain.org<user%2Bdovecot at localhost.localdomain.org>
> wrote:
> On 12/17/2010 07:27 PM dmitri tchernov wrote:
> >
> > # /usr/bin/doveconf userdb
> > userdb {
> > args = /mnt/dovecot/userlist.passwd
> > driver = passwd-file
> > }
> >
> > Well spotted, an UTF-8 character was in the file at the wrong place. I
> had:
> > # doveadm user test00001
> > userdb lookup: user test00001 doesn't exist
> >
> > And now:
> > # doveadm user test00001
> > userdb: test00001
> > uid : 1001
> > gid : 1001
> >
> > # dovecot reload
> > #
> >
> > I run the imaptest with user test00001, and I have the following lines in
> > /var/log/mail.log:
> > Dec 17 19:22:48 dovecot: auth: Debug: client in:
> >
> AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=49371#011resp=<hidden>
> > Dec 17 19:22:48 dovecot: auth: Debug: passwd-file(test00001,127.0.0.1):
> > lookup: user=test00001 file=/mnt/dovecot/userlist.passwd
> > Dec 17 19:22:48 dovecot: auth: passwd-file(test00001,127.0.0.1): Password
> > mismatch
> > Dec 17 19:22:48 dovecot: auth: Debug: pam(test00001,127.0.0.1): lookup
> > service=dovecot
> > Dec 17 19:22:48 dovecot: auth: Debug: pam(test00001,127.0.0.1): #1/1
> style=1
> > msg=Password:
> > Dec 17 19:22:50 dovecot: auth: pam(test00001,127.0.0.1):
> pam_authenticate()
> > failed: Authentication failure (password mismatch?)
> >
> > # doveadm auth test00001 <the password supplied in userlist.passwd for
> this
> > user>
> > passdb: test00001 auth succeeded
> > extra fields:
> > user=test00001
>
>
> ,--[ …/conf.d/10-logging.conf ]--
> | # In case of password mismatches, log the passwords and used scheme so
> the
> | # problem can be debugged. Enabling this also enables auth_debug.
> | #auth_debug_passwords = no
> `--
>
> Set auth_debug_passwords to yes, Dovecot will log the reason why
> authentication fails.
>
>
Thank you very much for your patience, Pascal. It appeared that imaptest
wanted a fixed password ("pass"), regardless of test00001's one. Thus, I
set "pass" as the password in userlist.passwd for test00001, so that
imaptest eventually stop complaining.
>
> Regards,
> Pascal
> --
> The trapper recommends today: f007ba11.1035119 at localdomain.org
>
More information about the dovecot
mailing list