From f5a7d6e93b0b66e2f2cc24cd4860ce2b700b4b13 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 12 Jan 2006 14:39:16 +0000 Subject: [PATCH] Added speed optimization git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2466 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupGeneric.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 8b2c2b6ae..6cddc6321 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -372,13 +372,9 @@ class group extends plugin $this->users= array(); $ldap= $this->config->get_ldap_link(); $gufilter= get_global("gufilter"); - $ldap->cd ($gufilter['dselect']); - $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))"); - natcasesort ($this->users); - reset ($this->users); $ldap->cd ($gufilter['dselect']); - $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))"); + $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))", array("uid", "sn", "givenName")); $this->allusers= array(); while ($attrs= $ldap->fetch()){ if (isset($attrs["givenName"][0]) && isset($attrs["sn"][0])){ -- 2.30.2