summaryrefslogtreecommitdiffstats
path: root/usr
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:19 -0300
commit10b92c5756c5d9aa4e183fa08fe8fe0ad2c12bd0 (patch)
treef660fd614fabcc83eb01900e226dbb01ef80d385 /usr
parent8104c3df32ae429dd8bf554dcc9b8dcafd09b796 (diff)
downloadpfsense-10b92c5756c5d9aa4e183fa08fe8fe0ad2c12bd0.zip
pfsense-10b92c5756c5d9aa4e183fa08fe8fe0ad2c12bd0.tar.gz
When RADIUS auth is selected, radius protocol and server ip/host are mandatory. Fixes #4384
Diffstat (limited to 'usr')
-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