--- 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 +++ smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/40userAuth 2009-03-11 18:11:06.000000000 +0100 @@ -2,7 +2,9 @@ { my $userAuth = ${'openvpn-bridge'}{userAuth} || 'CrtWithPass'; if ($userAuth eq 'CrtWithPass'){ - $OUT .= "plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so login\n"; + my $plugin_dir = (-d "/usr/share/openvpn/plugin/lib") ? + '/usr/share/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib'; + $OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n"; } $OUT .= ''; }