Page 1 of 1

openvpn-auth-pam.so missing?

Posted: Fri May 24, 2013 2:56 am
by Nanja
Hello,
I followed this guide, which worked last time I used it. http://safesrv.net/install-openvpn-on-centos/
I got to the part where I do

Code: Select all

service openvpn restart
Shutting down openvpn:                                     [  OK  ]
Starting openvpn:                                          [FAILED]
openvpn /etc/openvpn/server.conf
Fri May 24 05:42:23 2013 PLUGIN_INIT: could not load plugin shared object /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so: /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so: cannot open shared object file: No such file or directory
Fri May 24 05:42:23 2013 Exiting due to fatal error
I checked /usr/share/openvpn/ and it was empty. How do I get openvpn-auth-pam back?

Re: openvpn-auth-pam.so missing?

Posted: Fri May 24, 2013 11:11 am
by janjust
which version of centos and openvpn is this?
The openvpn 2.2.2 rpm on my CentOS 6 box does include that file, but it seems to have gone missing in the 2.3.1 release (which I'd consider a bug).

Update: will be fixed in the next EPEL version; see https://bugzilla.redhat.com/show_bug.cgi?id=966373

Re: openvpn-auth-pam.so missing?

Posted: Thu Jun 27, 2013 2:25 pm
by kurtcoke
I had this error too. All I did was run

# yum downgrade openvpn

Works fine after that.

Hope this solves your problem. I created an account just so I could help out my fellow Unix user. :)

Re: openvpn-auth-pam.so missing?

Posted: Wed Jan 15, 2014 10:46 am
by celsowebber
Hello all,

The problem with the updated package is that the plugin mas moved to another directory.

Please change your openvpn configuration file from:
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so XXX

To:
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so XXX

Where XXX is the PAM service file you would like to use for OpenVPN authentication against PAM (many examples suggest you use sshd or system-auth for this).

Hope this helps.

Best regards, Celso.

Re: openvpn-auth-pam.so missing?

Posted: Mon Mar 30, 2015 8:14 am
by marcelkraan
in CentOs7 also this problem
fixed with:

locate auth-pam.so
/usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so

mkdir -p /usr/lib64/openvpn/plugin/lib/
ln -s /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so

/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/server.pid --cd /etc/openvpn --config server.conf --script-security 2


and running like a charme