threerings / openvpn-auth-ldap

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

Tips to compile plugin on CentOS 7.6 #71

Open maretodoric opened 4 years ago

maretodoric commented 4 years ago

I would like to point out something that would need to be added to Requirements to compile this plugin. Beside the regular Development Tools (yum groupinstall "Development Tools"), re2c, openldap-devel and openvpn-devel I also needed to install following packages: openssl-devel gcc-objc gcc-objc++ It would not finish "configure" without it.

Also, with above installed, the process to build is next:

mkdir -p /opt/openvpn-ldap-auth
autoconf
autoheader
./configure --prefix=/opt/openvpn-ldap-auth --with-openvpn=/usr/include CFLAGS="-fPIC" OBJCFLAGS="-std=gnu11"

And of course, build directory can be something else if chosen.

I would just like to add since it would be nice to mention it since there is installation procedure and script written specifically for ubuntu, and not CentOS.

Built and tested this on: CentOS Linux release 7.6.1810 (Core) gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) OpenVPN 2.4.7 OpenSSL 1.0.2 OpenLDAP 2.4.44