Skip to content

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

@kindred

Description

@kindred

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions