Anders
(Anders)
January 6, 2023, 8:17am
1
CMK version: 2.1.p16
OS version: Centos 8
Error message:
I can’t change the password using either cmk-passwd or htpasswd
Whatever I do I always get login failed…
web.log says it’s locked.
2023-01-06 08:13:12,466 [30] [cmk.web.auth 3142255] Login failed for username: cmkadmin (existing: Yes, locked: Yes, failed logins until locked: -19), client: 10.0.101.108
It would be nice if the cmk-password would unlock any failed attempts (that I guess this refers to?) - Is there a way to manually fix this?
kdeutsch
(Karl Deutsch)
January 6, 2023, 9:06am
2
Hi,
open the file cached_profile.mk
in the directory var/check_mk/web/cmkadmin
and replace:
'locked': True
with
'locked': False
… or have a look at these threads:
Hi,
I’m running CheckMK_2.0.0p1 on a Debian 10 server. I’ve locked the “cmkadmin” user and I’m not able to reactivate it and to log in into the console.
I use htpasswd -m htpasswd cmkadmin to define a new, password,
I check the password with htpasswd -v htpasswd cmkadmin and cat htpasswd to check the entry has been updated
I try to log-in on the interface, I get an “invalid credential” error
I check the htpasswd file with cat htpasswd then see the “!” in front oh the hash, and htpasswd -v h…
Karl
Anders
(Anders)
January 6, 2023, 9:25am
3
Intersting, after changing locked to False, trying to login (just once) the profile is directly changed to True (with one “failed” attempt)
Only you could create another admin user from CLI.
If you specify another user, that does not exits with cmk-passwd it will actually create a user (as a normal user)
system
(system)
Closed
January 6, 2024, 9:25am
4
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.