diff options
author | jim-p <jim@pingle.org> | 2010-04-19 14:21:47 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-04-19 14:21:47 -0400 |
commit | 494b4e60267738961ffacf5162cc39ed025543f7 (patch) | |
tree | 061ce8540d8859a33dd52edc5052fb9848ff4a1e | |
parent | c0f650c421966e049dcb971d442157bc93fe5fda (diff) | |
download | pfsense-494b4e60267738961ffacf5162cc39ed025543f7.zip pfsense-494b4e60267738961ffacf5162cc39ed025543f7.tar.gz |
Fix default port choices for LDAP/RADIUS server in OpenVPN wizard.
-rw-r--r-- | usr/local/www/wizards/openvpn_wizard.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 87bae7f..361e823 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -79,9 +79,9 @@ function step3_submitphpaction() { /* Default LDAP port is 389 for TCP and 636 for SSL */ if (empty($_POST['port'])) { if ($_POST['transport'] == "tcp") - $_POST['port'] = 389; + $config['ovpnserver']['step2']['port'] = 389; elseif ($_POST['transport'] == "ssl") - $_POST['port'] = 636; + $config['ovpnserver']['step2']['port'] = 636; } if (empty($_POST['name']) || empty($_POST['ip']) ||empty($_POST['transport']) || @@ -133,7 +133,7 @@ function step5_submitphpaction() { /* Default RADIUS Auth port = 1812 */ if (empty($_POST['port'])) - $_POST['port'] = 1812; + $config['ovpnserver']['step2']['port'] = 1812; if (empty($_POST['name']) || empty($_POST['ip']) || empty($_POST['secret'])) { $stepid--; |