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:19 -0300 |
commit | 10b92c5756c5d9aa4e183fa08fe8fe0ad2c12bd0 (patch) | |
tree | f660fd614fabcc83eb01900e226dbb01ef80d385 /usr | |
parent | 8104c3df32ae429dd8bf554dcc9b8dcafd09b796 (diff) | |
download | pfsense-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.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 */ |