Solved

Can't use the CLAPI

  • 30 January 2024
  • 2 replies
  • 61 views

Badge +6

Hi, I can’t use the centreon command in my centreon machine.
This is the command:

centreon -u admin -p '!example!' -o HC -a show
Unable to login, your password has expired.

However, I can enter with my user admin and my password ‘!example!’ in the centreon’s web page.

Also on the web Administracion>Authenticacion I had set the following configuration.

 

Thanks for your time.

icon

Best answer by ruben_mendez 30 January 2024, 11:13

View original

2 replies

Badge +6

I just resolved this issue.
Seems that on the web, the expiration policy for the excluded users doesn’t work for the same user in the clapi. So I changed the creation_date field (from the user admin) in the contact_password table from the centreon’s database.
 

update contact_password set creation_date = '1706609352' where contact_id = 1;

 

Userlevel 4
Badge +13

maybe similar to?

 

https://docs.centreon.com/docs/22.10/releases/centreon-os/#bug-fixes-8

Reply