voxpupuli / puppet-openvpn

OpenVPN module for puppet including client config/cert creation
Apache License 2.0
113 stars 198 forks source link

openvpn-auth-ldap.so plugin not being loaded in CentOS 7 #297

Open kindred opened 5 years ago

kindred commented 5 years ago

I am deploying an openvpn server on CentOS 7, and openvpn fails to start due to an invalid config. I've traced it to this line (https://github.com/voxpupuli/puppet-openvpn/blob/master/manifests/params.pp#L33) unsetting the lib file. This writes out an invalid plugin line in the config causing the following error to appear.

Thu Oct 11 10:49:30 2018 us=958804 PLUGIN_INIT: could not load plugin shared object /etc/openvpn/vpnserver/auth/ldap.conf: /etc/openvpn/vpnserver/auth/ldap.conf: invalid ELF header: No such file or directory (errno=2)

The config looks like this: plugin "/etc/openvpn/vpnserver/auth/ldap.conf"

when it should look like this: plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so "/etc/openvpn/vpnserver/auth/ldap.conf"

Error is in the current commit, as well as the module on puppetforge which I'm currently trying to use.

bastelfreak commented 5 years ago

Hey @kindred, thanks for reporting this. Can you provide a pull request for this bug?