voxpupuli / puppet-openvpn

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

Wrong pam_module_path on Centos 7 x64 #234

Open dupgit opened 7 years ago

dupgit commented 7 years ago

module puppet-openvpn version is 4.0.1

cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
puppet --version
4.10.1
locate openvpn-plugin-auth-pam.so
/usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so

Seems that $pam_module_path is set to /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so for Redhat families. Is there a way to pass this parameter to the openvpn::server class ?

Thanks.

kirkmadera commented 7 years ago

I also ran into this. As a temporary fix, you can apply this:

file { '/usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so':
    ensure => link,
    target => '/usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so',
    require => File['/usr/lib64/openvpn/plugin/lib'],
  }