summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/openvpn_wizard.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-12 16:11:42 -0400
committerjim-p <jim@pingle.org>2010-04-12 16:12:51 -0400
commit916fae48c6bf5011475dbcab57310e21cc9907c6 (patch)
tree039575e4a4b599a012bb1920c01e500ea996d0dc /usr/local/www/wizards/openvpn_wizard.inc
parent99a00640c02745680b44994cbe194a577490ed2c (diff)
downloadpfsense-916fae48c6bf5011475dbcab57310e21cc9907c6.zip
pfsense-916fae48c6bf5011475dbcab57310e21cc9907c6.tar.gz
OpenVPN Wizard: Fix CA Cert selection for Local auth. Fix descriptions and some backend bits for RADIUS. Ticket #500.
Diffstat (limited to 'usr/local/www/wizards/openvpn_wizard.inc')
-rw-r--r--usr/local/www/wizards/openvpn_wizard.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc
index c516707..3ccfb93 100644
--- a/usr/local/www/wizards/openvpn_wizard.inc
+++ b/usr/local/www/wizards/openvpn_wizard.inc
@@ -31,7 +31,7 @@ require_once("openvpn.inc");
function step1_submitphpaction() {
global $stepid, $config;
if ($_POST['authtype'] == "local") {
- $stepid = 5;
+ $stepid = 4;
$config['ovpnserver']['step1']['type'] = "local";
} else if ($_POST['authtype'] == "ldap") {
$stepid = 0;
@@ -131,8 +131,11 @@ function step4_submitphpaction() {
function step5_submitphpaction() {
global $stepid, $savemsg, $config;
- if (empty($_POST['name']) || empty($_POST['ip']) || empty($_POST['port']) ||
- empty($_POST['secret'])) {
+ /* Default RADIUS Auth port = 1812 */
+ if (empty($_POST['port']))
+ $_POST['port'] = 1812;
+
+ if (empty($_POST['name']) || empty($_POST['ip']) || empty($_POST['secret'])) {
$stepid--;
$savemsg = "Please enter all information for authentication server.";
} else if (count(($authcfg = auth_get_authserver($_POST['name']))) > 0) {
OpenPOWER on IntegriCloud