CMK version: 2.2.0p22.cre
OS version: Ubuntu 22.04
Error message: Incorrect username or password. Please try again.
I’ve tried to log in as cmkadmin with the existing password (from a Checkmk 2.1.0p31.cre install), and it failed. Pretty much all the instructions on the subject say to run:
htpasswd -m etc/htpasswd cmkadmin
…which I did, and set a new password. I still can’t log in though. Since the -m means “MD5”, which is disabled in cmk 2.2, I figured maybe it was supposed to be bcrypt:
htpasswd -B etc/htpasswd cmkadmin
…but still no luck. Likewise cmk-passwd cmkadmin. I’ve tried it a few times, and yes, I have locked the user. I’ve unlocked it again by resetting the password, this appears to work, as it no longer says “user is locked”, but instead says “Incorrect username or password. Please try again.”.
In all cases above, I’ve been able to verify the password in htpasswd as correct with:
htpasswd -v etc/htpasswd cmkadmin
I’ve also tried changing the password to different values (in case there’s a character which doesn’t work). I’m running out of ideas - what else can I do here?
(the back story here is that after the upgrade, it seems to have changed the LDAP rules so that no LDAP user is an admin any longer - as such, I need the cmkadmin user to be able to go in to fix it!)