Skip to Content

Could not authenticate with any LDAP server

Could not authenticate with any LDAP server

How to fix Error: Could not authenticate with any LDAP server


If you are facing the above error check the following:-

1. Check if your LDAP server is reachable from the gateway server.

You can check this by running the following command:

root@gateway:~ telnet  ldap_server_ip 389

For Example:

root@gateway:~ telnet 389

2. If you have configured LDAP with SSL or TLS in Ezeelogin GUI,  try it without SSL or TLS.

3. Check what is under the error log.

The log files are stored in the system_folder specified at the time of installation.
You can find the path by checking the system_folder in /usr/local/etc/ezlogin/ez.conf. The path would /{system folder}/applicaton/logs/

For example:-

root@gateway:tail /var/www/ezlogin/application/logs/log-2022-06-23.php

4. Check whether the bind password and bind username is correct. If the bind password or username is wrong the application logs will show Severity: Warning --> ldap_bind(): Unable to bind to server: Invalid credentials

5. Check if the problem affects all users or only a single one.

6.  Are you still having problems after logging in as super admin?  

7. Switch the LDAP authentication to Internal and try it out.

Related Articles:

Change the authentication from LDAP to internal in the database