1 |
--- smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/40userAuth.openvpn_2_1_compat 2008-12-03 10:29:13.000000000 +0100 |
2 |
+++ smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/40userAuth 2009-03-11 18:11:06.000000000 +0100 |
3 |
@@ -2,7 +2,9 @@ |
4 |
{ |
5 |
my $userAuth = ${'openvpn-bridge'}{userAuth} || 'CrtWithPass'; |
6 |
if ($userAuth eq 'CrtWithPass'){ |
7 |
- $OUT .= "plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so login\n"; |
8 |
+ my $plugin_dir = (-d "/usr/share/openvpn/plugin/lib") ? |
9 |
+ '/usr/share/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; |
10 |
+ $OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n"; |
11 |
} |
12 |
$OUT .= ''; |
13 |
} |