Code

Added speed optimization
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 14:39:16 +0000 (14:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 14:39:16 +0000 (14:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2466 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

index 8b2c2b6ae20e7e86ee88ca1ce3f2a2c9e17cdc7c..6cddc632133cc82092263961e789f481e12ecfdb 100644 (file)
@@ -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])){