centreon-archived
centreon-archived copied to clipboard
Centreon 22.04 openldap no longer working
Since the upgrade to centreon 22.04, the binding to ldap no longer works. I can use the plugin centreon_protocol_ldap.pl to test the connectivity and it works fine, however, the manual import does not work. See below:
/usr/lib/centreon/plugins/centreon_protocol_ldap.pl --plugin=apps::protocols::ldap::plugin --mode=search --hostname=X.X.X.X --ldap-connect-options='scheme=ldaps' --username='cn=admin,dc=xxxx,dc=xxx' --password='xxxxx' --search-base='ou=users,ou=xxx,dc=xxxx,dc=xxx' --search-filter='(&(uid=*)(objectClass=inetOrgPerson))' --verbose --display-entry
OK: Number of results returned: 3 | 'entries'=3;;;0; 'time'=0.076s;;;0;
Ldap logs:
tailf /var/log/centreon/ldapsearch.log
[23/05/2022 15:06] LDAP Connect : trying url : ldaps://X.X.X.X:636/
[23/05/2022 15:06] LDAP Connect : Credentials : cn=admin,dc=xxxx,dc=xxx
[23/05/2022 15:06] LDAP Error : Can't contact LDAP server
[23/05/2022 15:06] LDAP Connect : Bind : Can't contact LDAP server
[23/05/2022 15:06] LDAP Connect : connection error
[23/05/2022 15:07] LDAP Connect : trying url : ldaps://X.X.X.X:636/
[23/05/2022 15:07] LDAP Connect : Credentials : cn=admin,dc=xxxx,dc=xxx
[23/05/2022 15:07] LDAP Error : Can't contact LDAP server
[23/05/2022 15:07] LDAP Connect : Bind : Can't contact LDAP server
[23/05/2022 15:07] LDAP Connect : connection error
I have the exact same configuration on a Centreon 21.04 and it works like a charm:
tailf /var/log/centreon/ldapsearch.log
[23/05/2022 15:10] LDAP Connect : trying url : ldaps://X.X.X.X:636/
[23/05/2022 15:10] LDAP Connect : Credentials : cn=admin,dc=xxx,dc=xxx
[23/05/2022 15:10] LDAP Search : Base DN : ou=users,ou=xxx,dc=xxxx,dc=xxx
[23/05/2022 15:10] LDAP Search : Filter : (&(uid=*)(objectClass=inetOrgPerson))
[23/05/2022 15:10] LDAP Search : Size Limit : 60
[23/05/2022 15:10] LDAP Search : Timeout : 60
[23/05/2022 15:10] LDAP Error : Success
[23/05/2022 15:10] LDAP Search : 3 entries found
[23/05/2022 15:10] LDAP Search : 3
[23/05/2022 15:56] LDAP Search : XML Output :