Page 1 of 1

Nagios XI - Unable to bind to server: Can't contact LDAP

Posted: Fri Aug 25, 2017 3:30 am
by anantwgupta
I have a Nagios XI installed in centos server and we have performed an AD migration from one server to the other i.e. from one vendor to other. So overall from nagios XI persepctive there is just a chnage in AD server with a change in IP only.

Now I am able to integrate Nagios with correct AD settings, buts its very slow while logging to the application.

[Fri Aug 25 08:20:33 2017] [error] [client 10.96.55.74] PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/adLDAP.php on line 714, referer: http://monitoring.konecranes.com/nagios ... f&noauth=1


Line 714 looks like:-

// Bind as the user
$ret = false;
$this->ldapBind = ldap_bind($this->ldapConnection, $username . $this->accountSuffix, $password); /// line 714
if ($this->ldapBind){
$ret = true;
}

I am not able to get anything. Can someone help me.

Re: Nagios XI - Unable to bind to server: Can't contact LDAP

Posted: Fri Aug 25, 2017 10:17 am
by cdienger
Can the XI server ping the new AD server? Is the AD server listed by name or IP under Admin > users > LDAP/AD Integration? If by name can the name be resolved to the correct IP from the XI command line? Is there an entry for the AD server in /etc/hosts? If the IP address changed there could be new routes or firewalls that may be preventing the traffic from XI to AD.

Try:

Code: Select all

ping ad_hostname
ping ad_ip_addr

telnet ad_ip_addr 389 (or 636 depending on AD settings)

traceroute ad_ip_addr