smeserver-openvpn-routed/root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth
2014-06-23 18:25:55 +02:00

10 lines
351 B
Plaintext

{
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";
}
$OUT .= '';
}