Guys i just installed Centreon for testing on my lab, for whatever reason i was using the incorrect password for the user admin in the web access and now the user is bloqued.
Do you have any advise on how to unlock the user, i have access to the centos root without any problems.
Thanks
Page 1 / 1
Hello @rusomenace
Just to confirm, do you want a solution to change the admin password without any access to the GUI?
Regards
Hello @sduret,
I have the same problem, the admin account is blocked after the installation.
I want to reset the password with the command line but i don’t know how to do.
Thanks
Hello You can connect to the DB and execute this query:
USE centreon UPDATE contact SET contact_passwd = md5('NEW_PASSWORD') WHERE contact_alias = 'CONTACT_ALIAS';
Regards
I'm new to Linux. How can I connect to the Centreon database to execute the command you sent me?
I managed to successfully login to the web interface. Thanks a lot for your help
Hello,
If you want to desactivate the “blocking option” as me, you need to set “Time that must pass before new connection is allowed” to 0 minute.
Hi,
Tried to reset my admin password with the next command :
UPDATE contact SET contact_passwd=md5('toto') where contact_alias='admin';
but ==> Unknown column 'contact_passwd' in 'field list'
Checked the fields with “SELECT * FROM contact;” …did not find it.
Any help ?
@BastienO have you had the opportunity of looking at the contact and contact_password tables if you are using 22.04+
Hi @BastienO
From Centreon 22.04, the algorithm of password hash is in BCRYPT and no more in MD5.
If you need to hardcode a password directly in a database, the MD5('mypassword') function will no more work (the login will try to compare a MD5 password in database with a BCRYPT hash and your authentication will fail).
To avoid this, here is a pair of clear password => hash value. Be sure to write the hashed password in database.
Warning: You will be able to connect to Centreon UI or API with this password, but it doesn’t follow any security policy so be sure to change it for a safer one when you are able to connect to Centreon.
Worked !
Thank you very much
Bonjour.
Je m’appel Laurent et je débute sur Centreon et je n’ai que très très peu de notion dans Mysql. Je sais me connecte à ma DB centreon avec mysql en root.
Je suis dans le même cas que Rusomenace. J’ai appliqué les 2 commandes données par @ponchoh et @sduret mais hélas, à chaque fois j’ai la même erreur.
Quand je tape :
update centreon.contact set login_attempts=NULL, blocking_time=NULL where contact_id = admin;
ou
UPDATE contact SET contact_passwd = md5(mypwd) WHERE contact_alias = admin;
cela me répond :
ERROR 1054 (42S22): Unknown column 'admin' in 'where clause'
Je ne sais pas comment interpréter cette réponse, je suis bloqué.
A savoir que c’est “admin” qui est bloqué à la page web de connexion à centreon. Et bien entendu je n’ai qu’un seul utilisateur.
Merci d’avance pour votre aide.
PS : ce n’est pas un problème de mot car je suis sur de celui ci.
J’ai réussi après plusieurs essai!!!
J’ai tapé ca :
MariaDB Mcentreon]> update centreon.contact set login_attempts=NULL, blocking_time=NULL;