Master user password mismatch
Aki Tuomi
aki.tuomi at open-xchange.com
Fri Jan 29 08:23:25 EET 2021
Did you try with `doveadm pw -t 'hash-goes-here'`?
Sometimes you need to use
passdb {
driver = passwd-file
args = scheme=your-pw-scheme /path/to/file
}
Note that the path must be placed last.
Aki
> On 28/01/2021 20:53 Gregory Sloop <gregs at sloop.net> wrote:
>
>
> Anyone?
>
>
>
>
>
> Trying to get master users working.
>
> I'm not sure what info would be best, but here's the detail I have now, in trying to get it working.
> Setup the master user file, and enabled master users in the conf files.
> Created the master user file and user/password hash.
>
> Turned on authentication debug.
> When I try something like:
> telnet localhost 143
> and then supply the master user login - kind of like this:
> 1 login joeb*jb-master somepassword
>
> I get this in the logs. (Some obfuscation done.)
> ---
> dovecot: auth: Debug: auth client connected (pid=24985)
> dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011session=MM6QC9a5SIYAAAAAAAAAAAAAAAAAAAAB#011lip=::1#011rip=::1#011lport=143#011rport=34376#011resp=<hidden>
> dovecot: auth: Debug: passwd-file(jb-master,::1,master,<MM6QC9a5SIYAAAAAAAAAAAAAAAAAAAAB>): Master user lookup for login: joeb
> dovecot: auth: Debug: passwd-file(jb-master,::1,master,<MM6QC9a5SIYAAAAAAAAAAAAAAAAAAAAB>): lookup: user=jb-master file=/etc/dovecot/masterusers-test
> dovecot: auth: passwd-file(jb-master,::1,master,<MM6QC9a5SIYAAAAAAAAAAAAAAAAAAAAB>): Password mismatch
> dovecot: auth: Debug: client passdb out: FAIL#0111#011user=jb-master
> ---
>
> Yet I can use
> htpasswd -b -c -s /etc/dovecot/masterusers-test jb-master somepassword
> And this succeeds. (I created the masterusers-test file with httpasswd)
>
> So, I must have the password right, but dovecot is till failing the auth, claiming a bad password.
>
> How do I go about getting more detail so I can determine what's wrong?
>
> TIA
> -Greg
>
>
More information about the dovecot
mailing list