Error using SSL/TLS with AD-Authentication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
monit_burb
Posts: 52
Joined: Fri Sep 23, 2016 3:00 am

Re: Error using SSL/TLS with AD-Authentication

Post by monit_burb »

ssax wrote:Please run this command:

Code: Select all

sed -i 's/\/\/ Otherwise check authentication/ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);/g' /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/ldap_ad_integration.inc.php
Then run this tail command, make it fail a few times, and then send me the entire output from the tail command:

Code: Select all

tail -f /var/log/httpd/*error_log
When you are done, revert the change with this command:

Code: Select all

sed -i 's/ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);/\/\/ Otherwise check authentication/g' /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/ldap_ad_integration.inc.php
Thank you
Hello ssax, I send you by PM the log output
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error using SSL/TLS with AD-Authentication

Post by ssax »

Received, please change it from TLS to SSL and then run the same info and PM it again.

Thank you
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error using SSL/TLS with AD-Authentication

Post by ssax »

Ok, now we see what's going on:

Code: Select all

TLS: loaded CA certificate file /etc/openldap/cacerts/XXXXXXXXX.0 from CA certificate directory /etc/openldap/cacerts.
TLS: loaded CA certificate file /etc/openldap/cacerts/XXXXXXXX.0 from CA certificate directory /etc/openldap/cacerts.
TLS: certificate [CN=Issuing CA,DC=XXXXXX,DC=XXX] is not valid - error -8179:Peer's Certificate issuer is not recognized..
TLS: error: connect - force handshake failure: errno 0 - moznss error -8179
TLS: can't connect: TLS error -8179:Peer's Certificate issuer is not recognized..
Run this command against the domain controller and send me the output:
- Make sure to change YOURDOMAINCONTROLLER to your domain controller IP or DNS name.

Code: Select all

openssl s_client -showcerts -connect YOURDOMAINCONTROLLER:636 </dev/null
ktservices
Posts: 19
Joined: Mon Mar 26, 2012 6:20 am
Location: Germany
Contact:

Re: Error using SSL/TLS with AD-Authentication

Post by ktservices »

Hello,

i think i found the issue. i changed the owner of the directory "/etc/openldap/certs" from root:root to apache:nagios. After this change when i add the root-certificate of our CA through the Web-GUI two new files where generated in the directory "/etc/openldap/certs", one pem-file and one crt-file. This new files are owned by "apache", so User "apache" needs write-access to directory "/etc/openldap/certs". i removed the workaround "TLS_REQCERT never" from /etc/openldap/ldap.conf to test the change. Our AD-Users can now login as expected with no errors.

Btw. i made this change with version 5.4.3.

Best Regards
Reinhold Krinninger
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Error using SSL/TLS with AD-Authentication

Post by cdienger »

Thanks for posting your solution. Did you have any more questions or can we close the thread at this point?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked