From 444c69f0dc2120b95958413e5318be2a268a92f8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 15 Sep 2003 19:29:29 +0000 Subject: [PATCH] removed get/set_Admins() --- lam/tests/conf-test.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lam/tests/conf-test.php b/lam/tests/conf-test.php index c94b278f..20c82c8e 100644 --- a/lam/tests/conf-test.php +++ b/lam/tests/conf-test.php @@ -33,7 +33,6 @@ echo ("

Starting Test...

"); echo ("Loading preferences..."); $ServerURL = $conf->get_ServerURL(); $cache_timeout = $conf->get_cacheTimeout(); -$Admins = $conf->get_Admins(); $Passwd = $conf->get_Passwd(); $Adminstring = $conf->get_Adminstring(); $Suff_users = $conf->get_UserSuffix(); @@ -59,7 +58,6 @@ echo ("done
"); echo ("Changing preferences..."); $conf->set_ServerURL("ldap://123.345.678.123:777"); $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_Adminstring("uid=test,o=test,dc=org;uid=root,o=test2,c=de"); $conf->set_UserSuffix("ou=test,o=test,c=de"); @@ -87,9 +85,6 @@ echo ("Loading and comparing..."); $conf2 = new Config('test'); if ($conf2->get_ServerURL() != "ldap://123.345.678.123:777") echo ("
Saving ServerURL failed!
"); if ($conf2->get_cacheTimeout() != "33") echo ("
Saving Cache timeout failed!
"); -$adm_arr = $conf2->get_Admins(); -if ($adm_arr[0] != "uid=test,o=test,dc=org") echo ("
Saving admins failed!" . $adm_arr[0] . "
"); -if ($adm_arr[1] != "uid=root,o=test2,c=de") echo ("
Saving admins failed!
"); if ($conf2->get_Passwd() != "123456abcde") echo ("
Saving password failed!
"); if ($conf2->get_Adminstring() != "uid=test,o=test,dc=org;uid=root,o=test2,c=de") echo ("
Saving admin string failed!
"); if ($conf2->get_UserSuffix() != "ou=test,o=test,c=de") echo ("
Saving user suffix failed!
"); @@ -115,7 +110,6 @@ echo ("done
"); echo ("Restoring old preferences..."); $conf2->set_ServerURL($ServerURL); $conf2->set_cacheTimeout($cache_timeout); -$conf2->set_Admins($Admins); $conf2->set_Passwd($Passwd); $conf2->set_Adminstring($Adminstring); $conf2->set_UserSuffix($Suff_users);