Hi,
/edit: It may be even easier: Changing the password from console using kpasswd does not work for “normal” users, error shown is:
kpasswd: krb5_set_password_using_ccache: Unable to rearch any changepw server in realm …
Getting a ticket via kinit works as that user.
/Original message:
after the update to UCS 4.3-1 from 4.2-4 and some minor bugs, this one also impacts users. When trying to change the password using the self-service module, the User receives the following german error:
Passwort ändern fehlgeschlagen. Der Grund konnte nicht festgestellt werden. Für den Fall, dass es hilft, hier die originale Fehlernachricht: Unable to reach any changepw server in realm D1.D2.d3.DE. Errorcode 20: Das neue Passwort konnte nicht gesetzt werden.
The password is set anyway [sic!] for login with the web frontend, but not for IMAP.
Changing the password from the UMS seems to work.
The server configuration looks like this:
Master - sidious
Backup - vader (except for replication this should not be a problem?)
root@sidious:/etc/pam.d# ucr search --brief kerberos
kerberos/adminserver: sidious.d1.d2.d3.de
kerberos/adminusers: <empty>
kerberos/afscell: <empty>
kerberos/allow/weak/crypto: <empty>
kerberos/autostart: yes
kerberos/defaults/debug: <empty>
kerberos/defaults/dns_lookup_kdc: <empty>
kerberos/defaults/dns_lookup_realm: <empty>
kerberos/defaults/enctypes/permitted: <empty>
kerberos/defaults/enctypes/tgs: <empty>
kerberos/defaults/enctypes/tkt: <empty>
kerberos/defaults/forwardable: <empty>
kerberos/defaults/ignore_acceptor_hostname: true
kerberos/defaults/kdc_timesync: <empty>
kerberos/defaults/proxiable: <empty>
kerberos/defaults/rdns: <empty>
kerberos/domain_realms: <empty>
kerberos/kadmin/default/keys: <empty>
kerberos/kdc: sidious.d1.d2.d3.de
kerberos/kpasswdserver: sidious.d1.d2.d3.de
kerberos/password/quality/check: yes
kerberos/realm: D1.D2.D3.DE
The logfiles in /var/log/univention/ show:
==> ./management-console-server.log <==
13.08.18 09:26:46.995 MODULE ( PROCESS ) : Setting auth type to None
13.08.18 09:26:47.077 MAIN ( PROCESS ) : Updating user password in 0 running module processes (auth-type: None).==> ./management-console-web-server.log <==
13.08.18 09:26:47.078 MAIN ( PROCESS ) : SessionClient(0x7feab43d0210): _authenticated: success=True status=200 message=None
13.08.18 09:26:47.078 MAIN ( PROCESS ) : auth_type=None==> ./listener.log <==
13.08.18 09:26:57.612 LISTENER ( PROCESS ) : updating ‘uid=testbenutzer,cn=users,dc=d1,dc=d2,dc=d3,dc=de’ command m==> ./management-console-server.log <==
13.08.18 09:26:59.346 AUTH ( WARN ) : Changing password failed ((‘Fehler beim \xc3\x84ndern des Authentifizierungstoken’, 20)). Prompts: [('Current Kerberos password: ', 1), ('Geben Sie ein neues Passwort ein: ', 1), ('Geben Sie das neue Passwort erneut ein: ', 1), (‘Unable to reach any changepw server in realm D1.D2.D3.DE’, 3)]==> ./management-console-web-server.log <==
13.08.18 09:26:59.460 MAIN ( PROCESS ) : CPSet (IP_ADRESSE:42304) response status code: 400
13.08.18 09:26:59.460 MAIN ( PROCESS ) : CPSet (IP_ADRESSE:42304) response message: Passwort ändern fehlgeschlagen. Der Grund konnte nicht festgestellt werden. Für den Fall, dass es hilft, hier die originale Fehlernachricht: Unable to reach any changepw server in realm D1.D2.D3.DE. Errorcode 20: Das neue Passwort konnte nicht gesetzt werden.
13.08.18 09:26:59.460 MAIN ( PROCESS ) : CPSet (IP_ADRESSE:42304) response result: {‘new_password’: u’Passwort \xe4ndern fehlgeschlagen. Der Grund konnte nicht festgestellt werden. F\xfcr den Fall, dass es hilft, hier die originale Fehlernachricht: Unable to reach any changepw server in realm D1.D2.D3.DE. Errorcode 20: Das neue Passwort konnte nicht gesetzt werden.’}==> ./management-console-server.log <==
13.08.18 09:27:14.373 MAIN ( PROCESS ) : Connection timed out.
/var/log/heimdal-kdc.log shows:
2018-08-13T08:59:22 AS-REQ testbenutzer@D1.D2.D3.DE from IPv4:SERVERIP for krbtgt/D1.D2.D3.DE@D1.D2.D3.DE
2018-08-13T08:59:22 Client sent patypes: ENC-TS, REQ-ENC-PA-REP
2018-08-13T08:59:22 Looking for PK-INIT(ietf) pa-data -- testbenutzer@D1.D2.D3.DE
2018-08-13T08:59:22 Looking for PK-INIT(win2k) pa-data -- testbenutzer@D1.D2.D3.DE
2018-08-13T08:59:22 Looking for ENC-TS pa-data -- testbenutzer@D1.D2.D3.DE
2018-08-13T08:59:22 Failed to decrypt PA-DATA -- testbenutzer@D1.D2.D3.DE (enctype aes256-cts-hmac-sha1-96) error Decrypt integrity check failed for checksum type hmac-sha1-96-aes256, key type aes256-cts-hmac-sha1-96
2018-08-13T08:59:22 sending 153 bytes to IPv4:SIDIOUSIP
/var/log/auth.log shows:
Aug 13 08:58:35 sidious python2.7: pam_unix(univention-management-console:chauthtok): user "testbenutzer" does not exist in /etc/passwd
Aug 13 08:58:45 sidious python2.7: pam_unix(univention-management-console:chauthtok): user "testbenutzer" does not exist in /etc/passwd
Aug 13 08:58:45 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:45 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:45 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:46 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:46 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:46 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:46 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:46 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:46 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:46 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:46 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:46 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:46 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:47 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:47 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:47 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:47 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:58:47 sidious kpasswdd[897]: Changing password for testbenutzer@D1.D2.D3.de
Aug 13 08:58:47 sidious kpasswdd[897]: <class 'univention.admin.uexceptions.pwalreadyused'>
Aug 13 08:59:12 sidious python2.7: pam_unix(univention-management-console:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=testbenutzer
The same also happens in a virtual machine configuration, that has been upgraded in the same intervals as the original systems. Any ideas where I can continue looking?