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

9 lines
298 B
Plaintext

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