Unable to authenticate: Could not connect to the LDAP server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
phaandiyan2412
Posts: 13
Joined: Tue Apr 06, 2021 11:56 pm

Unable to authenticate: Could not connect to the LDAP server

Post by phaandiyan2412 »

Hi,

I am trying to import users from Active Directory to Nagios XI
When I try to login to my AD server from Nagios XI to import the user's, this message appear :

Unable to authenticate: Could not connect to the LDAP server selected

I do use my admin/password credentials.
What can I do to achieve this.
:?
My Nagios XI Version: 5.8.1

Base D/N: OU=User,OU=Dwelltec,DC=dwelltec,DC=asia
Account Suffix: @dwelltec.asia
Domain Controllers: 192.168.xxx.xxx.dwelltec.asia
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to authenticate: Could not connect to the LDAP se

Post by ssax »

Please follow this guide to enable AD/LDAP debugging and send me the full output from the tail command from the article after you try to import:

https://support.nagios.com/kb/article/a ... n-600.html

Please PM me a screenshot of Admin > LDAP / AD Integration with the auth server settings expanded.

What is the output of these commands:
- Change X.X.X.X to the IP or DNS name of your AD domain controller before running

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
echo 'DONE' | openssl s_client -showcerts -connect X.X.X.X:636
What OS and version of PHP are you running?

Code: Select all

uname -a
cat /etc/*release
php -v
phaandiyan2412
Posts: 13
Joined: Tue Apr 06, 2021 11:56 pm

Re: Unable to authenticate: Could not connect to the LDAP se

Post by phaandiyan2412 »

Hi There,

Thanks for your update. Anyway, I managed to settle it myself.
Turn out that I just need to add the IP address only of my AD server instead of full address with the domain.

Exp as below:

Base D/N: DC=dwelltec,DC=asia
Account Suffix: @dwelltec.asia
Domain Controllers: 192.168.xxx.xxx

This actually allowed myself to authenticate with the AD server and imported the users successfully.

Thanks Again!! :D :D :D
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to authenticate: Could not connect to the LDAP se

Post by benjaminsmith »

This actually allowed myself to authenticate with the AD server and imported the users successfully.

Thanks Again!! :D :D :D
Excellent!

We'll go ahead lock this one up.

Thank you for using Nagios.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked