|
|
@ -1,8 +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/share/openvpn/plugin/lib") ? |
|
|
|
my $plugin_dir = (-d "/usr/lib64/openvpn/plugin/lib") ? |
|
|
|
'/usr/share/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; |
|
|
|
'/usr/lib64/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; |
|
|
|
$OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n"; |
|
|
|
$OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
$OUT .= ''; |
|
|
|
$OUT .= ''; |
|
|
|