diff options
author | Ermal <eri@pfsense.org> | 2010-10-15 13:59:03 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-15 13:59:03 +0000 |
commit | b641a575bf78f968692ae8f388fe620deb1b6b1a (patch) | |
tree | 13bf6950c61bca37892789dcb5f506fc6a88a205 /usr | |
parent | f1aad4d1ad04214382ba577360732ae581c51264 (diff) | |
download | pfsense-b641a575bf78f968692ae8f388fe620deb1b6b1a.zip pfsense-b641a575bf78f968692ae8f388fe620deb1b6b1a.tar.gz |
Ticket #934. Perform test only for ldap backend. Also tell the user through a message when they click it for other backends.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index cba9d57..d7e3e1a 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -41,9 +41,6 @@ ##|*MATCH=system_usermanager_settings.php* ##|-PRIV -if($_POST['savetest']) - $save_and_test = true; - require("guiconfig.inc"); $pconfig['session_timeout'] = &$config['system']['webgui']['session_timeout']; @@ -53,6 +50,7 @@ $pconfig['backend'] = &$config['system']['webgui']['backend']; // Page title for main admin $pgtitle = array(gettext("System"),gettext("User manager settings")); +$save_and_test = false; if ($_POST) { unset($input_errors); $pconfig = $_POST; @@ -64,6 +62,11 @@ if ($_POST) { } if (!$input_errors) { + if ($_POST['savetest'] && $_POST['authmode'] == "ldap") + $save_and_test = true; + else + $savemsg = gettext("The test was not performed becuase it is supported only for ldap based backends."); + if(isset($_POST['session_timeout']) && $_POST['session_timeout'] != "") $config['system']['webgui']['session_timeout'] = intval($_POST['session_timeout']); |