summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-24 16:08:19 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-02-24 16:08:29 -0300
commitaa314146cac3382cc1c7fc28c93296f70e7c9682 (patch)
treecb6dbfb2b35a7a9d8d585fda971015574c93b697 /usr/local/www/services_captiveportal.php
parent6c452c3ebefeb51691b1c62628174253c4f583a4 (diff)
downloadpfsense-aa314146cac3382cc1c7fc28c93296f70e7c9682.zip
pfsense-aa314146cac3382cc1c7fc28c93296f70e7c9682.tar.gz
When RADIUS auth is selected, radius protocol and server ip/host are mandatory. Fixes #4384
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rw-r--r--usr/local/www/services_captiveportal.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 41a9042..a56a6fc 100644
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -210,6 +210,13 @@ if ($_POST) {
$reqdfields = explode(" ", "zone cinterface");
$reqdfieldsn = array(gettext("Zone name"), gettext("Interface"));
+ if (isset($_POST['auth_method']) && $_POST['auth_method'] == "radius") {
+ $reqdfields[] = "radius_protocol";
+ $reqdfieldsn[] = gettext("RADIUS Protocol");
+ $reqdfields[] = "radiusip";
+ $reqdfieldsn[] = gettext("Primary RADIUS server IP address");
+ }
+
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
/* make sure no interfaces are bridged or used on other zones */
OpenPOWER on IntegriCloud