From: hickert Date: Fri, 9 May 2008 08:14:56 +0000 (+0000) Subject: Setup perfromance improvements X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d934f136a80c2e406b6414f52818e9dff05f22ec;p=gosa.git Setup perfromance improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10854 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/setup/class_setupStep_Migrate.inc b/gosa-core/setup/class_setupStep_Migrate.inc index 7e45ca33e..0465afe86 100644 --- a/gosa-core/setup/class_setupStep_Migrate.inc +++ b/gosa-core/setup/class_setupStep_Migrate.inc @@ -187,7 +187,7 @@ class Step_Migrate extends setup_step $ldap = new ldapMultiplexer($ldap_l); $ldap->cd($cv['base']); - $res = $ldap->search("uidNumber=*",array("dn","uidNumber")); + $res = $ldap->search("(&(objectClass=posixAccount)(uidNumber=*))",array("dn","uidNumber")); if(!$res){ $this->checks['uidNumber_usage']['STATUS'] = FALSE; $this->checks['uidNumber_usage']['STATUS_MSG']= _("LDAP query failed"); @@ -1620,7 +1620,9 @@ class Step_Migrate 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); $err = ldap_errno($ldap->cid); if( !$res ||