bfg/openvpn_auth — Issue #1: not setting push-reset the right way
Author: peks
Created: 2012-03-06 14:23:38+00:00
State: open

Setting openvpnPushReset=True in LDAP manifests in 'push "push-reset"' in config file.
Example: openvpnPushReset=True
-- snip --
ifconfig-push 10.1.XX.XX 10.1.XX.XX
push "push-reset"
push "route 10.254.0.0 255.255.255.0"
-- snip --

Code:
openvpn-client-connect-ldap +1146
if ($type == CFG_BOOL) {
my $str = lc(join("", @{$value}));
if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1') {
$write_str = 'push "' . $ovpn_param . '"';
}
}