Project

General

Profile

« Previous | Next » 

Revision 20e18ef2

Added by Ermal LUÇI over 14 years ago

Properly test for ldap case when clicking save and test for GUI authserver.

View differences:

usr/local/www/system_usermanager_settings.php
62 62
	}
63 63

  
64 64
	if (!$input_errors) {
65
		if ($_POST['savetest'] && $_POST['authmode'] == "ldap")
66
			$save_and_test = true;
67
		else
68
			$savemsg = gettext("The test was not performed becuase it is supported only for ldap based backends.");
65
		if ($_POST['authmode'] != "local") {
66
			$authsrv = auth_get_authserver($_POST['authmode']);
67
			if ($_POST['savetest'] && $authsrv['type'] == "ldap")
68
				$save_and_test = true;
69
			else
70
				$savemsg = gettext("The test was not performed becuase it is supported only for ldap based backends.");
71
		}
69 72

  
70 73

  
71 74
		if(isset($_POST['session_timeout']) && $_POST['session_timeout'] != "")

Also available in: Unified diff