puppet-openvpn icon indicating copy to clipboard operation
puppet-openvpn copied to clipboard

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

Open kindred opened this issue 7 years ago • 1 comments

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.

kindred avatar Oct 11 '18 01:10 kindred

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

bastelfreak avatar Oct 14 '18 09:10 bastelfreak