Question

can't change password

  • 5 December 2022
  • 10 replies
  • 324 views

Userlevel 1
Badge +4

Hello,

I need your help, the password of my centreon has expired, so I have to change it but when I try to change it I get an error "Width must be an integer"

 

 

centreon 22.04 


10 replies

Userlevel 3
Badge +11

👋

 

@Kélian you can begin with this

 

or

 

Regarding the error, does the new password match your “password security policy” ?

🤞

Userlevel 5
Badge +14

Hi @Kélian did you have error in /var/log/php-fpm/centreon-error.log when you try to change password?

Userlevel 1
Badge +4

Hello @Laurent,

i just have one error for today

i’ve check if there is other log file but no

Userlevel 1
Badge +4

👋

 

@Kélian you can begin with this

 

or

 

Regarding the error, does the new password match your “password security policy” ?

🤞

Hello @ponchoh,

I’ve already check this, i have found with this topic how i can modify the database to regain access, and i have update manually the timestamp of the expiration of the password.

For the password security policy it’s a generated password like the oldest.

 

Badge +2

I have the same problem. Where you able to solve this?

Userlevel 1
Badge +4

I have the same problem. Where you able to solve this?

Hello Thomas,

 

i have updated the timestamp of the password un the database

Userlevel 2
Badge +3

Hi, we are able to reproduce the bug and have certainly found the root cause of this issue. We’ll start to develop a patch for this soon.

Badge

Hi, 

Could you please describe how to get rid of this issue? 

Thank you and regards,
Luis Miguel.

 

Badge

Hi,

To change the default password, connect to your server as root and run this command:

[root@centreon-central ~]# mariadb -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 14
Server version: 10.5.15-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use centreon;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [centreon]> INSERT INTO contact_password (password, contact_id, creation_date) VALUES ('$2y$10$ubq1hJ9z3YPXBhejjae.Ie9u3AcMrwFNImPhOnnkLmEoNtwRGwNrC', 1, (SELECT UNIX_TIMESTAMP(NOW())));
Query OK, 1 row affected (0.002 sec)

 

Now you can connect to Centreon with the login/password: admin/centreon

Don't forget to change this password by editing your profile !

Badge

Any news on when this issue is resolved?
is this bugreport in a publicstate or in your internal github?

Reply