Invalid credentials

Hello all. How you doing.

Suddenly I got this Error regarding to Invalid credentials.
I changed it from the Users menu , using the cmkadmin
I changed also using the monitoring user with the htpassword and same problem.

Version: 1.6.0p6

[root@Server ~]# su - monitor
Last login: Mon Aug 28 16:20:46 -04 2023 on pts/0
OMD[monitor]:~$ htpasswd -m htpasswd soporte_plataforma
New password:
Re-type new password:
Updating password for user soporte_plataforma

File on /opt/omd/sites/plataforma/etc/check_mk/multisite.d/wato
lock_on_logon_failures = 0

Please let me know if you need more information.
Thanks in advance.
Best Regards.

Braulio Martinez

Hi @brauliom,
the command to change the password on the CLI is:

htpasswd -m etc/htpasswd soporte_plataforma

… or …

cmk-passwd soporte_plataforma

Karl

Hi Karl… danke schon for you reply. I ran the command and the result is the same… look.

Last login: Tue Aug 29 15:10:11 2023 from 10.90.45.66
[root@foprd01bdmonin ~]# su - monitor
Last login: Tue Aug 29 09:47:34 -04 2023 on pts/0
OMD[monitor]:~$ htpasswd -m etc/htpasswd soporte_plataforma
New password:
Re-type new password:
Updating password for user soporte_plataforma

OMD[monitor]:~$ cmk-passwd soporte_plataforma
bash: cmk-passwd: command not found…

image

Thanks a lot.
Best Regards.

Hello @brauliom, maybe your user is already locked and needs to be unlocked. You should be able to see that in Users menu or check the config-file ~/etc/check_mk/multisite.d/wato/users.mk

1 Like

Hi Lorenz… How you doing bud. Thanks for your reply
I send you the content of the File users.mk

/opt/omd/sites/plataforma/etc/check_mk/multisite.d/wato

Written by Check_MK store (2023-08-31 08:27:13)

multisite_users.update({

u’explotador’: {‘force_authuser_webservice’: False, ‘locked’: False, ‘roles’: [‘user’], ‘force_authuser’: False, ‘alias’: u’explotadores’, ‘start_url’: ‘dashboard.py’},
u’cmkadmin’: {‘force_authuser_webservice’: False, ‘locked’: False, ‘roles’: [‘admin’], ‘force_authuser’: False, ‘ui_theme’: None, ‘alias’:
u’cmkadmin’, ‘start_url’: ‘dashboard.py’},

u’soporte_plataforma’: {‘force_authuser_webservice’: False, ‘locked’: False, ‘roles’: [‘admin’], ‘force_authuser’: False, ‘ui_theme’: ‘modern-dark’,
‘alias’: u’Soporte’, ‘start_url’: ‘dashboard.py’}, u’automation’: {‘alias’: u’Check_MK Automation - used for calling web services’, ‘locked’: False,
‘language’: ‘en’, ‘roles’: [‘admin’], ‘automation_secret’: ‘a4a005f5-834d-42bf-909b-f9d944abc48d’}})

Thanks a lot.
Please let me know if you will need more information
Best Regards.

The file looks good, you can see the property locked: Falsefor the user, so it looks like that isn’t the problem. You can try verifying the password you entered via the commandline using htpasswd as the site-user, so you can check if you typed it in correctly: htpasswd -v etc/htpasswd <username>.
Otherwise, you could try creating a new user to see if this issue persists or if just that user-profile is somehow “broken”.

Hi Lorenz … thanks a lot bud. Now it worked …
Thank you so much to all for all your help here.

Best Regards.

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.