openvpn-auth-ldap icon indicating copy to clipboard operation
openvpn-auth-ldap copied to clipboard

LDAP bind failed immediately: Can't contact LDAP server

Open lnredone opened this issue 6 years ago • 6 comments

Why Centos 7.4 install OPENVPN 2.4.6 use OPENVPN - auth - ldap2.0.3. The correct RPM package The same environment in centos6.5 no problem

LDAP bind failed immediately: Can't contact LDAP server

lnredone avatar Aug 25 '18 02:08 lnredone

Two suggestions:

  1. Attempt to make the same connection using the ldapsearch utility.
  2. Include the conf file utilized by OpenVPN.

colinbjohnson avatar Nov 05 '18 04:11 colinbjohnson

I met the same problem,it works fine for serveral days,but today the vpn server can't work,it seems the openvpn server exited when can't connect to ldap server.

here is some log :

Dec 18 10:19:25 openvpn[1356]: LDAP bind failed immediately: Can't contact LDAP server Dec 18 10:19:25 openvpn[1356]: Unable to bind as cn=Manager,dc=test,dc=com Dec 18 10:19:25 openvpn[1356]: LDAP connect failed. Dec 18 10:20:00 systemd[1]: [email protected]: main process exited, code=killed, status=6/ABRT Dec 18 10:20:00 systemd[1]: Unit [email protected] entered failed state. Dec 18 10:20:00 systemd[1]: [email protected] failed.

netkey avatar Dec 18 '18 08:12 netkey

I have the same issue, with CentOS 7.6, ovpn 2.4.6 and auth-ldap 2.0.3. I verified with ldapsearch and I get my results without any problem.

My solution was simply to use the IP of the domain controller. I don't know why but the plugin can't seem to find it with its fqdn or simply the domain.

Soraphiroth avatar Mar 06 '19 14:03 Soraphiroth

The same issue here, looks like DNS resolver not stable, any update?

albert748 avatar Mar 29 '19 06:03 albert748

i have this problem when using chroot

psychomantys avatar Dec 30 '20 20:12 psychomantys

i have this problem when using chroot

It looks like the chroot has an incorrect resolv.conf file or something like that. When accessing the ldap server via IP, everything worked

badsysadm avatar Feb 23 '24 01:02 badsysadm