From 7a30a9d7982e44576629492b8ba4c136dd7128c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 May 2008 07:59:46 +0000 Subject: [PATCH] Updated setup (performance) -Do not query the whole ldap, we just wan't to check if there is an initialized database. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10852 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Schema.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gosa-core/setup/class_setupStep_Schema.inc b/gosa-core/setup/class_setupStep_Schema.inc index 0899c7792..4f795ea3f 100644 --- a/gosa-core/setup/class_setupStep_Schema.inc +++ b/gosa-core/setup/class_setupStep_Schema.inc @@ -78,7 +78,9 @@ class Step_Schema extends setup_step /* Check if root object exists */ $ldap->cd($cv['base']); + $ldap->set_size_limit(1); $res = $ldap->search("(objectClass=*)"); + $ldap->set_size_limit(0); $smarty = get_smarty(); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); -- 2.30.2