Code

Updated setup (performance)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 07:57:22 +0000 (07:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 07:57:22 +0000 (07:57 +0000)
-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/branches/2.5@10851 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Schema.inc

index 63b6ce47334cf95873ec544d325fce93d64cef5a..c9a38e6696842650b7158794c2a9129842ddd814 100644 (file)
@@ -76,7 +76,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")));