centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
578 stars 240 forks source link

fix(ldap): add debug and avoid ldap failures (22.04) #12002

Open kduret opened 1 year ago

kduret commented 1 year ago

Description

add debug and avoid ldap failures

Handle following error : [15-Sep-2022 10:31:20 GMT] CRITICAL: Uncaught Error: ldap_get_entries(): Argument #2 ($result) must be of type resource, bool given {"exception":"[object] (TypeError(code: 0): ldap_get_entries(): Argument #2 ($result) must be of type resource, bool given at /usr/share/centreon/www/class/centreonLDAP.class.php:326)"}

Add debug to avoid to be blind when errors happen

Fixes MON-15115

Type of change

Target serie

sonarqube-decoration[bot] commented 1 year ago

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

kduret commented 1 year ago

migrated to https://github.com/centreon/centreon-gha/pull/149