diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-02-24 16:08:19 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-24 16:08:29 -0300 |
commit | aa314146cac3382cc1c7fc28c93296f70e7c9682 (patch) | |
tree | cb6dbfb2b35a7a9d8d585fda971015574c93b697 /usr/local/www/services_captiveportal.php | |
parent | 6c452c3ebefeb51691b1c62628174253c4f583a4 (diff) | |
download | pfsense-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.php | 7 |
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 */ |