openvpn-auth-pam.so missing?

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
Nanja
OpenVpn Newbie
Posts: 1
Joined: Fri May 24, 2013 2:51 am

openvpn-auth-pam.so missing?

Post by Nanja » Fri May 24, 2013 2:56 am

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: openvpn-auth-pam.so missing?

Post by janjust » Fri May 24, 2013 11:11 am

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

kurtcoke
OpenVpn Newbie
Posts: 1
Joined: Thu Jun 27, 2013 2:24 pm

Re: openvpn-auth-pam.so missing?

Post by kurtcoke » Thu Jun 27, 2013 2:25 pm

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. :)

celsowebber
OpenVpn Newbie
Posts: 4
Joined: Tue Jan 14, 2014 9:49 pm

Re: openvpn-auth-pam.so missing?

Post by celsowebber » Wed Jan 15, 2014 10:46 am

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.

marcelkraan
OpenVpn Newbie
Posts: 6
Joined: Mon Sep 23, 2013 6:59 am

Re: openvpn-auth-pam.so missing?

Post by marcelkraan » Mon Mar 30, 2015 8:14 am

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

Post Reply