Master user and invalid credentials dovecot-2.2.13
Hi,
I followed the docs from the dovecot wiki (http://wiki2.dovecot.org/Authentication/MasterUsers) and still have some problem:
- uncommented "!include auth-ldap.conf.ext" in 10-auth.conf
- htpasswd -b -c -s .... to create user/password for a masteruseruser
- checked auth-master.conf.ext
When I try to test the login, I always get an "invalid credentials" in the logs with auth_debug=yes set.
dovecot can read /etc/dovecot/master-users
The users are in ldap.
The example wiki shows the passwords {SHA1}...., in my password file they are {SHA}....
The "master user" posting in september gave some clues what might be wrong, but did not help to solve my problem.
Any suggestions are welcome! Thanks and regards. Götz
-- Götz Reinicke IT-Koordinator
Tel. +49 7141 969 82 420 E-Mail goetz.reinicke@filmakademie.de
Filmakademie Baden-Württemberg GmbH Akademiehof 10 71638 Ludwigsburg www.filmakademie.de
Eintragung Amtsgericht Stuttgart HRB 205016
Vorsitzender des Aufsichtsrats: Jürgen Walter MdL Staatssekretär im Ministerium für Wissenschaft, Forschung und Kunst Baden-Württemberg
Geschäftsführer: Prof. Thomas Schadt
Am 29.09.2014 um 10:08 schrieb Götz Reinicke - IT Koordinator:
Hi,
I followed the docs from the dovecot wiki (http://wiki2.dovecot.org/Authentication/MasterUsers) and still have some problem:
- uncommented "!include auth-ldap.conf.ext" in 10-auth.conf
- htpasswd -b -c -s .... to create user/password for a masteruseruser
- checked auth-master.conf.ext
When I try to test the login, I always get an "invalid credentials" in the logs with auth_debug=yes set.
dovecot can read /etc/dovecot/master-users
The users are in ldap.
The example wiki shows the passwords {SHA1}...., in my password file they are {SHA}....
The "master user" posting in september gave some clues what might be wrong, but did not help to solve my problem.
Any suggestions are welcome! Thanks and regards. Götz
hm perhaps this helps
https://sys4.de/de/blog/2013/02/11/master-user-dovecot-isp-layout-mit-postfi...
but looks like some password problem what do you use plain/login etc ?
http://wiki2.dovecot.org/Authentication/Mechanisms http://wiki2.dovecot.org/Authentication/PasswordSchemes
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Hi,
As you are performing the tests? Would post the debug log? Cheers,
Clóvis
Em 29-09-2014 05:08, Götz Reinicke - IT Koordinator escreveu:
Hi,
I followed the docs from the dovecot wiki (http://wiki2.dovecot.org/Authentication/MasterUsers) and still have some problem:
- uncommented "!include auth-ldap.conf.ext" in 10-auth.conf
- htpasswd -b -c -s .... to create user/password for a masteruseruser
- checked auth-master.conf.ext
When I try to test the login, I always get an "invalid credentials" in the logs with auth_debug=yes set.
dovecot can read /etc/dovecot/master-users
The users are in ldap.
The example wiki shows the passwords {SHA1}...., in my password file they are {SHA}....
The "master user" posting in september gave some clues what might be wrong, but did not help to solve my problem.
Any suggestions are welcome! Thanks and regards. Götz
-- Clovis Tristao - UNICAMP/Faculdade de Engenharia Agricola Administrador de Redes - Secao de Informatica (SINFO) E-mail: clovis@feagri.unicamp.br http://www.feagri.unicamp.br MSN: clovis_tristao33@hotmail.com Fone: 55(19) 35211031-35211038-35211047-91173116
Hi,
on the console:
telnet localhost 143 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
in the logs:
Sep 30 08:56:23 auth: Debug: client in: AUTH 2936 PLAIN service=imap
secured session=fOCd4UIEMAB/AAAB lip=127.0.0.1 rip=127.0.0.1
lport=143 rport=54320 resp=<hidden>
Sep 30 08:56:23 auth: Debug:
passwd-file(user,127.0.0.1,master,
/Götz
Am 29.09.14 um 15:04 schrieb Clovis Tristao:
Hi,
As you are performing the tests? Would post the debug log? Cheers,
Clóvis
Em 29-09-2014 05:08, Götz Reinicke - IT Koordinator escreveu:
Hi,
I followed the docs from the dovecot wiki (http://wiki2.dovecot.org/Authentication/MasterUsers) and still have some problem:
- uncommented "!include auth-ldap.conf.ext" in 10-auth.conf
- htpasswd -b -c -s .... to create user/password for a masteruseruser
- checked auth-master.conf.ext
When I try to test the login, I always get an "invalid credentials" in the logs with auth_debug=yes set.
dovecot can read /etc/dovecot/master-users
The users are in ldap.
The example wiki shows the passwords {SHA1}...., in my password file they are {SHA}....
The "master user" posting in september gave some clues what might be wrong, but did not help to solve my problem.
Any suggestions are welcome! Thanks and regards. Götz
-- Götz Reinicke IT-Koordinator
Tel. +49 7141 969 82 420 E-Mail goetz.reinicke@filmakademie.de
Filmakademie Baden-Württemberg GmbH Akademiehof 10 71638 Ludwigsburg www.filmakademie.de
Eintragung Amtsgericht Stuttgart HRB 205016
Vorsitzender des Aufsichtsrats: Jürgen Walter MdL Staatssekretär im Ministerium für Wissenschaft, Forschung und Kunst Baden-Württemberg
Geschäftsführer: Prof. Thomas Schadt
On Mon, Sep 29, 2014 at 10:08:41AM +0200, G??tz Reinicke - IT Koordinator wrote:
The example wiki shows the passwords {SHA1}...., in my password file they are {SHA}....
You don't need to worry about that part, {SHA} and {SHA1} are aliases that map to the same behaviour:
src/auth/password-scheme.c#0805 0805 static const struct password_scheme builtin_schemes[] = { ... 0810 { "SHA", PW_ENCODING_BASE64, SHA1_RESULTLEN, NULL, sha1_generate }, 0811 { "SHA1", PW_ENCODING_BASE64, SHA1_RESULTLEN, NULL, sha1_generate },
Phil
participants (4)
-
Clovis Tristao
-
Götz Reinicke - IT Koordinator
-
Phil Carmody
-
Robert Schetterer