Page 1 of 1
AD Authentication to NagiosXI
Posted: Fri Jul 24, 2015 7:14 am
by avijit_bhardwaj
Hi All,
I am trying to do AD authentication in our environment for XI. Used below guide:
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
However still not able to login through AD credentials. I created user with my AD credential and dummy password but not able to login thru AD credentials.
Checked on AD side and as per windows team everything is working as expected.
Re: AD Authentication to NagiosXI
Posted: Fri Jul 24, 2015 9:44 am
by ssax
Did you setup SSL AD authentication as well?
What version of XI are you running? You can grab it from the bottom left hand side of the XI web interface.
Go to Admin > Manage Components and let us know the version of the Active Directory Integration component you are using.
Are you seeing anything related in your /var/log/httpd/error_log or /var/log/httpd/ssl_error_log?
You can enable debugging by editing this file:
/usr/local/nagiosxi/html/includes/components/active_directory/adLDAP
Find line 402 (this line):
Code: Select all
ldap_set_option($this->_conn, LDAP_OPT_REFERRALS, 0);
And add this after it:
Code: Select all
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
So it looks like this:
Code: Select all
ldap_set_option($this->_conn, LDAP_OPT_REFERRALS, 0);
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
Then run this command:
Code: Select all
tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
Try to login again then post the full output of the tail command in code tags so that we can see the errors.
Re: AD Authentication to NagiosXI
Posted: Mon Jul 27, 2015 5:00 am
by avijit_bhardwaj
Hi Ssax,
Got the issue fixed. Found out I was not using DC servers with fqdn. When enabled log found it was unable to contact the server. Now its working fine. Thanks a lot for your assistance.
Re: AD Authentication to NagiosXI
Posted: Mon Jul 27, 2015 9:16 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!