Update pam plugin path

tags/0.1.6_el5 0.1.6_el5
Daniel Berteaud 8 years ago
parent 848752010a
commit 66557c7d54
  1. 5
      root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth

@ -1,9 +1,8 @@
{ {
my $userAuth = ${'openvpn-routed'}{Authentication} || 'CrtWithPass'; my $userAuth = ${'openvpn-routed'}{Authentication} || 'CrtWithPass';
if ($userAuth eq 'CrtWithPass'){ if ($userAuth eq 'CrtWithPass'){
my $plugin_dir = (-d "/usr/lib64/openvpn/plugin/lib") ? my $libdir = (-d "/usr/lib64/") ? '/usr/lib64' : '/usr/lib';
'/usr/lib64/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; $OUT .= "plugin " . $libdir . "/openvpn/plugins/openvpn-plugin-auth-pam.so login\n";
$OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n";
} }
$OUT .= ''; $OUT .= '';
} }

Loading…
Cancel
Save