From 0d9985d2c8fe1331f1b856fb48182def5be204ac Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Tue, 8 Mar 2005 03:46:03 +0000 Subject: [PATCH] * Modify auth_method_change() to determine whether or not RADIUS-specific fields should be grayed out. * Call auth_method_change() along with enable_change() to set these values when the page is first accessed. --- usr/local/www/services_captiveportal.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 2bc809ef61..9016728284 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -186,6 +186,19 @@ function auth_method_change() { } else { document.iform.logoutwin_enable.checked = 0; } + if (document.iform.auth_method[2].checked == false) { + document.iform.radiusip.disabled = 1; + document.iform.radiusport.disabled = 1; + document.iform.radiuskey.disabled = 1; + document.iform.radacct_enable.disabled = 1; + document.iform.radiusacctport.disabled = 1; + } else { + document.iform.radiusip.disabled = 0; + document.iform.radiusport.disabled = 0; + document.iform.radiuskey.disabled = 0; + document.iform.radacct_enable.disabled = 0; + document.iform.radiusacctport.disabled = 0; + } } function radacct_change() { if (document.iform.radacct_enable.checked) { @@ -231,6 +244,9 @@ function enable_change(enable_change) { if (enable_change && document.iform.auth_method[0].checked == false) { document.iform.logoutwin_enable.checked = 1; } + + auth_method_change(); + } //--> @@ -372,7 +388,7 @@ to access after they've authenticated. HTTPS login - > + onClick="enable_https(false)"> Enable HTTPS login
If enabled, the username and password will be transmitted over an HTTPS connection to protect against eavesdroppers. This option only applies when RADIUS authentication is used. A server name, certificate and matching private key must also be specified below.