Page 1 of 1

LDAPS Active Directory Integration on CentOS 8

Posted: Mon Feb 22, 2021 1:28 pm
by dfaenza
I am having some trouble with configuration of AD Integration using SSL/TLS on CentOS 8. We are currently running Nagios XI 5.7.5 on CentOS 8 (CentOS Linux release 8.2.2004 (Core)). I have followed the instructions on https://assets.nagios.com/downloads/nag ... ponent.pdf as well as tried moving the certs to /etc/pki/ca-trust/source/anchors and doing an update-ca-trust. There have not been any indications of errors and all seems to accepted, however when I try to log in to Nagios XI after updating the security dropdown in the LDAP/Active Directory integration I receive an invalid username or password message.

This process worked great on all our other Nagios XI instances which currently reside on CentOS 7 installations, however on our new installations on CentOS 8 I am receiving this error. Are there additional steps that need taken with CentOS 8 to configure the TLS/SSL security with Active Directory?

Re: LDAPS Active Directory Integration on CentOS 8

Posted: Mon Feb 22, 2021 7:35 pm
by ssax
Please PM me the full output of this command:
- Change X.X.X.X to what you have set for the AD server in Admin > LDAP/AD Integration

Code: Select all

openssl s_client -showcerts -connect X.X.X.X:636 </dev/null
Send the output of these commands as well:

Code: Select all

ls -ld /etc/openldap
ls -l /etc/openldap
ls -l /etc/openldap/certs
ls -l /etc/openldap/cacerts
cat /etc/openldap/ldap.conf

Re: LDAPS Active Directory Integration on CentOS 8

Posted: Thu Feb 25, 2021 1:16 pm
by dfaenza
@ssax I sent a PM with the details. I would like to confirm you received it. It seemed to sit in my outbox for a while before actually going out

Re: LDAPS Active Directory Integration on CentOS 8

Posted: Thu Feb 25, 2021 4:01 pm
by ssax
I sent you a PM, please read it.

Add those three certs to /etc/pki/ca-trust/source/anchors and then run:

Code: Select all

update-ca-trust extract
If you already add all three of those no need to do it again.

Then edit your /etc/openldap/ldap.conf and add this:

Code: Select all

TLS_CACERT /etc/pki/tls/certs/ca-bundle.crt
Then restart both httpd and php-fpm:

Code: Select all

systemctl restart httpd php-fpm
Now test again and let me know the results.

Re: LDAPS Active Directory Integration on CentOS 8

Posted: Thu Feb 25, 2021 4:54 pm
by dfaenza
Worked like a charm! Thank you 1000x. You may mark this as resolved.

Re: LDAPS Active Directory Integration on CentOS 8

Posted: Fri Feb 26, 2021 11:17 am
by benjaminsmith
Worked like a charm! Thank you 1000x. You may mark this as resolved.
Great!

Closing this out.

Thank you for using Nagios.