smeserver-openvpn-routed/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth

9 lines
298 B
Plaintext
Raw Normal View History

2013-05-24 15:38:55 +02:00
{
my $userAuth = ${'openvpn-routed'}{Authentication} || 'CrtWithPass';
if ($userAuth eq 'CrtWithPass'){
2017-04-10 11:18:17 +02:00
my $libdir = (-d "/usr/lib64/") ? '/usr/lib64' : '/usr/lib';
$OUT .= "plugin " . $libdir . "/openvpn/plugins/openvpn-plugin-auth-pam.so login\n";
2013-05-24 15:38:55 +02:00
}
$OUT .= '';
}