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