openvpn-auth-ldap
openvpn-auth-ldap copied to clipboard
LDAP bind failed immediately: Can't contact LDAP server
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
Two suggestions:
- Attempt to make the same connection using the
ldapsearch
utility. - Include the
conf
file utilized by OpenVPN.
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.
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.
The same issue here, looks like DNS resolver not stable, any update?
i have this problem when using chroot
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