Hello All.
I just upgraded the server to 24.10.18 from 24.10.13. No error at all.
After that I was no longer able to log on the console either with my LDAP account or the local admin : I always get a authentication failed error.
I restarted the server, same issue.
In the login.log file there was a message : Authentication failed for 'admin' : invalid credentials
After a few trials I got : [INFO] User is blocked: maximum number of authentication attempts was reached {"contact_alias":"admin"}
I checked the password in the mariadb databse and found i was not correct compared to the hash version. Ok I changed it using that post :
Then the connexion asked me to change the password and now I can log in using the admin password. Ouf !!
But the ldap connexion is still failing. In the centreon-web log file I read that :
[2026-01-30T09:50:20+0100] [ERROR] An error occurred during authentication {"custom":{"trace":"TypeError: ldap_get_entries(): Argument #2 ($result) must be of type LDAP\\Result, bool given in /usr/share/centreon/www/class/centreonLDAP.class.php:370\nStack trace:\n#0 /usr/share/centreon/www/class/centreonLDAP.class.php(370): ldap_get_entries()\n#1 /usr/share/centreon/www/class/centreonContactgroup.class.php(442): CentreonLDAP->findGroupDn()\n#2 /usr/share/centreon/www/class/centreonAuth.LDAP.class.php(301): CentreonContactgroup->syncWithLdap()\n#3 /usr/share/centreon/www/class/centreonAuth.LDAP.class.php(181): CentreonAuthLDAP->updateUserDn()\n#4 /usr/share/centreon/www/class/centreonAuth.class.php(283): CentreonAuthLDAP->checkPassword()\n#5 /usr/share/centreon/www/class/centreonAuth.class.php(202): CentreonAuth->checkLdapPassword()\n#6 /usr/share/centreon/www/class/centreonAuth.class.php(414): CentreonAuth->checkPassword()\n#7 /usr/share/centreon/www/class/centreonAuth.class.php(163): CentreonAuth->checkUser()\n#8 /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php(99): CentreonAuth->__construct()\n#9 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Provider/Local.php(71): Security\\Domain\\Authentication\\Model\\LocalProvider->authenticateOrFail()\n#10 /usr/share/centreon/src/Core/Security/Authentication/Application/UseCase/Login/Login.php(99): Core\\Security\\Authentication\\Infrastructure\\Provider\\Local->authenticateOrFail()\n#11 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Api/Login/Local/LoginController.php(71): Core\\Security\\Authentication\\Application\\UseCase\\Login\\Login->__invoke()\n#12 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(181): Core\\Security\\Authentication\\Infrastructure\\Api\\Login\\Local\\LoginController->__invoke()\n#13 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#14 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(197): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#15 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#16 {main}"},"exception":null,"default":{"request_infos":{"uri":"/centreon/api/latest/authentication/providers/configurations/local","http_method":"POST","server":"centreon.my.domain"}}}
I’m still investigating the Ldap issue but I will appreciate any suggestion.
Have a nice day.
