Skip to main content
Solved

Can't use the CLAPI

  • January 30, 2024
  • 2 replies
  • 168 views

ruben_mendez
Forum|alt.badge.img+7

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.

Best answer by ruben_mendez

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;

 

2 replies

ruben_mendez
Forum|alt.badge.img+7
  • Author
  • Steward ***
  • Answer
  • January 30, 2024

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;

 


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • January 30, 2024