Permalink
Browse files

Merge pull request #2 from peks/master

fixed push-reset
  • Loading branch information...
Brane F. Gračnar
Brane F. Gračnar committed Mar 6, 2012
2 parents 3b07b96 + 66e2ae1 commit 22b9f410676eb050aa3d804d2e786e8467464d13
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin/openvpn-client-connect-ldap
@@ -1145,7 +1145,10 @@ sub ldapEntry2File {
} else {
if ($type == CFG_BOOL) {
my $str = lc(join("", @{$value}));
- if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1') {
+ if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1' && $ovpn_param eq 'push-reset') {
+ $write_str = $ovpn_param;
+ }
+ elsif ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1') {
$write_str = 'push "' . $ovpn_param . '"';
}
}
@@ -1483,4 +1486,4 @@ unless ($r) {
# run the bastard...
exit (! action_generic_run(@ARGV));
-# EOF
+# EOF

0 comments on commit 22b9f41

Please sign in to comment.