removed get/set_Admins()
This commit is contained in:
parent
f5c8c62355
commit
444c69f0dc
|
@ -33,7 +33,6 @@ echo ("<br><br><big><b> Starting Test...</b></big><br><br>");
|
||||||
echo ("Loading preferences...");
|
echo ("Loading preferences...");
|
||||||
$ServerURL = $conf->get_ServerURL();
|
$ServerURL = $conf->get_ServerURL();
|
||||||
$cache_timeout = $conf->get_cacheTimeout();
|
$cache_timeout = $conf->get_cacheTimeout();
|
||||||
$Admins = $conf->get_Admins();
|
|
||||||
$Passwd = $conf->get_Passwd();
|
$Passwd = $conf->get_Passwd();
|
||||||
$Adminstring = $conf->get_Adminstring();
|
$Adminstring = $conf->get_Adminstring();
|
||||||
$Suff_users = $conf->get_UserSuffix();
|
$Suff_users = $conf->get_UserSuffix();
|
||||||
|
@ -59,7 +58,6 @@ echo ("done<br>");
|
||||||
echo ("Changing preferences...");
|
echo ("Changing preferences...");
|
||||||
$conf->set_ServerURL("ldap://123.345.678.123:777");
|
$conf->set_ServerURL("ldap://123.345.678.123:777");
|
||||||
$conf->set_cacheTimeout("33");
|
$conf->set_cacheTimeout("33");
|
||||||
$conf->set_Admins(array("uid=test,o=test,dc=org","uid=root,o=test2,c=de"));
|
|
||||||
$conf->set_Passwd("123456abcde");
|
$conf->set_Passwd("123456abcde");
|
||||||
$conf->set_Adminstring("uid=test,o=test,dc=org;uid=root,o=test2,c=de");
|
$conf->set_Adminstring("uid=test,o=test,dc=org;uid=root,o=test2,c=de");
|
||||||
$conf->set_UserSuffix("ou=test,o=test,c=de");
|
$conf->set_UserSuffix("ou=test,o=test,c=de");
|
||||||
|
@ -87,9 +85,6 @@ echo ("Loading and comparing...");
|
||||||
$conf2 = new Config('test');
|
$conf2 = new Config('test');
|
||||||
if ($conf2->get_ServerURL() != "ldap://123.345.678.123:777") echo ("<br><font color=\"#FF0000\">Saving ServerURL failed!</font><br>");
|
if ($conf2->get_ServerURL() != "ldap://123.345.678.123:777") echo ("<br><font color=\"#FF0000\">Saving ServerURL failed!</font><br>");
|
||||||
if ($conf2->get_cacheTimeout() != "33") echo ("<br><font color=\"#FF0000\">Saving Cache timeout failed!</font><br>");
|
if ($conf2->get_cacheTimeout() != "33") echo ("<br><font color=\"#FF0000\">Saving Cache timeout failed!</font><br>");
|
||||||
$adm_arr = $conf2->get_Admins();
|
|
||||||
if ($adm_arr[0] != "uid=test,o=test,dc=org") echo ("<br><font color=\"#FF0000\">Saving admins failed!" . $adm_arr[0] . "</font><br>");
|
|
||||||
if ($adm_arr[1] != "uid=root,o=test2,c=de") echo ("<br><font color=\"#FF0000\">Saving admins failed!</font><br>");
|
|
||||||
if ($conf2->get_Passwd() != "123456abcde") echo ("<br><font color=\"#FF0000\">Saving password failed!</font><br>");
|
if ($conf2->get_Passwd() != "123456abcde") echo ("<br><font color=\"#FF0000\">Saving password failed!</font><br>");
|
||||||
if ($conf2->get_Adminstring() != "uid=test,o=test,dc=org;uid=root,o=test2,c=de") echo ("<br><font color=\"#FF0000\">Saving admin string failed!</font><br>");
|
if ($conf2->get_Adminstring() != "uid=test,o=test,dc=org;uid=root,o=test2,c=de") echo ("<br><font color=\"#FF0000\">Saving admin string failed!</font><br>");
|
||||||
if ($conf2->get_UserSuffix() != "ou=test,o=test,c=de") echo ("<br><font color=\"#FF0000\">Saving user suffix failed!</font><br>");
|
if ($conf2->get_UserSuffix() != "ou=test,o=test,c=de") echo ("<br><font color=\"#FF0000\">Saving user suffix failed!</font><br>");
|
||||||
|
@ -115,7 +110,6 @@ echo ("done<br>");
|
||||||
echo ("Restoring old preferences...");
|
echo ("Restoring old preferences...");
|
||||||
$conf2->set_ServerURL($ServerURL);
|
$conf2->set_ServerURL($ServerURL);
|
||||||
$conf2->set_cacheTimeout($cache_timeout);
|
$conf2->set_cacheTimeout($cache_timeout);
|
||||||
$conf2->set_Admins($Admins);
|
|
||||||
$conf2->set_Passwd($Passwd);
|
$conf2->set_Passwd($Passwd);
|
||||||
$conf2->set_Adminstring($Adminstring);
|
$conf2->set_Adminstring($Adminstring);
|
||||||
$conf2->set_UserSuffix($Suff_users);
|
$conf2->set_UserSuffix($Suff_users);
|
||||||
|
|
Loading…
Reference in New Issue