threerings / openvpn-auth-ldap

Implements username/password authentication via LDAP for OpenVPN 2.x.
Other
135 stars 63 forks source link

Invalid parameter LDAP #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

This is syslog error I get during OpenVPN start:

ovpn-ldap[5643]: Options error: Unrecognized option or missing parameter(s) in 
/etc/openvpn/ldap.conf:1: LDAP (2.2.1)

On a first line of /etc/openvpn/ldap.conf contains <LDAP>

If I turn the plugin off - everything works fine.

Environment :

openvpn: 2.2.1-8+deb7u2
openvpn-auth-ldap: 2.0.3-5.1
OS : Debian 7.7

Plugin was installed using common installer - "aptitude install 
openvpn-auth-ldap" and "aptitude install openvpn"

Original issue reported on code.google.com by muree...@gmail.com on 29 Oct 2014 at 5:39

GoogleCodeExporter commented 9 years ago
Hi,

Got the same problem.
If you have not resolved it, and for future users who might face it :
Do not put your plugin config files under /etc/openvpn/${whatever}.conf because 
the init script (at least in Debian/Ubuntu dists) thinks they are openvpn 
configs and try to launch openvpn instances using them, which fails.

Just put them in a subdir of /etc/openvpn, or just change their extension to 
not end by .conf.

Cheers.

Original comment by yann.u...@gmail.com on 24 Apr 2015 at 8:57

GoogleCodeExporter commented 9 years ago
Yann,
You are right, thanks for the tip

Original comment by muree...@gmail.com on 24 Apr 2015 at 9:51