Hello,
I have an issue with LDAP connection , here the error log during connection :
==> ../php-fpm/centreon-error.log <==
[10-Nov-2023 09:38:59 Europe/Paris] PHP Warning: ldap_search(): Search: Invalid DN syntax in /usr/share/centreon/www/class/centreonLDAP.class.php on line 336
==> centreon-web.log <==
>2023-11-10T09:38:59+0100] ERROR] Core\Security\Authentication\Application\UseCase\Login\Login:147]: An error occurred during authentication {"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:337\nStack trace:\n#0 /usr/share/centreon/www/class/centreonLDAP.class.php(337): ldap_get_entries()\n#1 /usr/share/centreon/www/class/centreonContactgroup.class.php(426): CentreonLDAP->findGroupDn()\n#2 /usr/share/centreon/www/class/centreonAuth.LDAP.class.php(285): CentreonContactgroup->syncWithLdap()\n#3 /usr/share/centreon/www/class/centreonAuth.LDAP.class.php(161): CentreonAuthLDAP->updateUserDn()\n#4 /usr/share/centreon/www/class/centreonAuth.class.php(261): CentreonAuthLDAP->checkPassword()\n#5 /usr/share/centreon/www/class/centreonAuth.class.php(182): CentreonAuth->checkLdapPassword()\n#6 /usr/share/centreon/www/class/centreonAuth.class.php(388): CentreonAuth->checkPassword()\n#7 /usr/share/centreon/www/class/centreonAuth.class.php(143): CentreonAuth->checkUser()\n#8 /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php(116): CentreonAuth->__construct()\n#9 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Provider/Local.php(75): Security\\Domain\\Authentication\\Model\\LocalProvider->authenticateOrFail()\n#10 /usr/share/centreon/src/Core/Security/Authentication/Application/UseCase/Login/Login.php(95): Core\\Security\\Authentication\\Infrastructure\\Provider\\Local->authenticateOrFail()\n#11 /usr/share/centreon/src/Core/Security/Authentication/Infrastructure/Api/Login/Local/LoginController.php(68): Core\\Security\\Authentication\\Application\\UseCase\\Login\\Login->__invoke()\n#12 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(163): Core\\Security\\Authentication\\Infrastructure\\Api\\Login\\Local\\LoginController->__invoke()\n#13 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#14 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#15 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#16 {main}"}
==> ldapsearch.log <==
>10/11/2023 09:41] LDAP Connect : trying url : ldap://<IP>:389/
>10/11/2023 09:41] LDAP Connect : Credentials : CN=<LDAP CN> ,OU=<ldap OU>,OU=<ldap OU>,OU=<ldap OU>,DC=<DC>,DC=<DC>
>10/11/2023 09:41] LDAP Error : Invalid DN syntax
>10/11/2023 09:41] LDAP Error : No such object
>10/11/2023 09:41] LDAP Error : Invalid DN syntax
I’m able to make import and my configuration work before.
Could someone have the same error, any idea please?
Thank’s