Page 1 of 1

Unable to authenticate: Could not connect to the LDAP server

Posted: Sat Jul 24, 2021 9:30 am
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

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

Posted: Mon Jul 26, 2021 11:44 am
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

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

Posted: Wed Jul 28, 2021 9:07 am
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

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

Posted: Wed Jul 28, 2021 3:20 pm
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.