From d934f136a80c2e406b6414f52818e9dff05f22ec Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 May 2008 08:14:56 +0000 Subject: [PATCH] Setup perfromance improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10854 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Migrate.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 || -- 2.30.2