From 66557c7d543573cdd5e3eb332bb54ba2517a3d60 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 10 Apr 2017 11:18:17 +0200 Subject: [PATCH] Update pam plugin path --- root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth b/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth index d0fe66e..3834504 100644 --- a/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth +++ b/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth @@ -1,9 +1,8 @@ { my $userAuth = ${'openvpn-routed'}{Authentication} || 'CrtWithPass'; if ($userAuth eq 'CrtWithPass'){ - my $plugin_dir = (-d "/usr/lib64/openvpn/plugin/lib") ? - '/usr/lib64/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; - $OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n"; + my $libdir = (-d "/usr/lib64/") ? '/usr/lib64' : '/usr/lib'; + $OUT .= "plugin " . $libdir . "/openvpn/plugins/openvpn-plugin-auth-pam.so login\n"; } $OUT .= ''; }