Question

OpenID Connect update "Error during Opend ID Configuration Update"

  • 15 December 2022
  • 2 replies
  • 76 views

Badge +1

Hi all,

 

I am currently having trouble updating my OpenID Connect configuration on Centreon.

We decided to change our idp from keycloack to lemonldap but when saving the new configuration in the web interface the following error appears "Error during Opend ID Configuration Update".

In the httpd logs:

xxx.xxx.xxx.xxx - - [14/Dec/2022:12:16:51 +0100] "GET /centreon/api/internal.php?object=centreon_topcounter&action=servicesStatus HTTP/1.1" 200 212 "https://supervision.xxx.xxx/centreon/administration/authentication" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0"
xxx.xxx.xxx.xxx - - [14/Dec/2022:12:16:51 +0100] "PUT /centreon/api/latest/administration/authentication/providers/openid HTTP/1.1" 500 67 "https://supervision.xxx.xxx/centreon/administration/authentication" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0"

 

We can clearly see the 500 error during the PUT.

I enabled application logs by following this doc:

https://thewatch.centreon.com/product%2Dhow%2Dto%2D21/how%2Dto%2Dactivate%2Dapplicative%2Dlogs%2D990

 

Errors reported by activating application logs:

[2022-12-13T18:32:09+0100] [INFO] [Core\Security\Application\ProviderConfiguration\OpenId\UseCase\UpdateOpenIdConfiguration\UpdateOpenIdConfiguration:155]: Creating Authorization Rules
[2022-12-13T18:32:09+0100] [DEBUG] [Core\Security\Infrastructure\Repository\DbReadAccessGroupRepository:209]: Getting Access Group by Ids {"ids":""}
[2022-12-13T18:32:09+0100] [ERROR] [Core\Security\Application\ProviderConfiguration\OpenId\UseCase\UpdateOpenIdConfiguration\UpdateOpenIdConfiguration:97]: Error during Opend ID Configuration Update {"trace":"#0 /usr/share/centreon/src/Core/Security/Infrastructure/Repository/DbReadAccessGroupRepository.php(222): PDOStatement->execute()\n#1 /usr/share/centreon/src/Core/Security/Application/ProviderConfiguration/OpenId/UseCase/UpdateOpenIdConfiguration/UpdateOpenIdConfiguration.php(157): Core\\Security\\Infrastructure\\Repository\\DbReadAccessGroupRepository->findByIds()\n#2 /usr/share/centreon/src/Core/Security/Application/ProviderConfiguration/OpenId/UseCase/UpdateOpenIdConfiguration/UpdateOpenIdConfiguration.php(81): Core\\Security\\Application\\ProviderConfiguration\\OpenId\\UseCase\\UpdateOpenIdConfiguration\\UpdateOpenIdConfiguration->createAuthorizationRules()\n#3 /usr/share/centreon/src/Core/Security/Infrastructure/ProviderConfiguration/OpenId/Api/UpdateOpenIdConfiguration/UpdateOpenIdConfigurationController.php(50): Core\\Security\\Application\\ProviderConfiguration\\OpenId\\UseCase\\UpdateOpenIdConfiguration\\UpdateOpenIdConfiguration->__invoke()\n#4 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(152): Core\\Security\\Infrastructure\\ProviderConfiguration\\OpenId\\Api\\UpdateOpenIdConfiguration\\UpdateOpenIdConfigurationController->__invoke()\n#5 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#6 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#7 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#8 {main}"}
[2022-12-13T18:32:09+0100] [DEBUG] [Core\Infrastructure\Common\Presenter\JsonPresenter:92]: Data error. Generating an error response

The version of centreon currently in place: 22.04.4


Have you encountered this problem before?

 

Have a good day.

 


2 replies

Badge +1

Can someone help me, or give me some instructions to check ?

Badge +1

UP !

Reply