AD Authentication to NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
avijit_bhardwaj
Posts: 17
Joined: Wed Feb 25, 2015 11:56 pm

AD Authentication to NagiosXI

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: AD Authentication to NagiosXI

Post 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.
avijit_bhardwaj
Posts: 17
Joined: Wed Feb 25, 2015 11:56 pm

Re: AD Authentication to NagiosXI

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: AD Authentication to NagiosXI

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked