Code

fixed group search
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 10:50:23 +0000 (10:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 10:50:23 +0000 (10:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1174 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc

index fe9c5119cb4f63dc1a5724ef522fe641e6cc9bc1..a086bb9c1123bd931d4819a261c26c795a73f18d 100644 (file)
@@ -607,7 +607,7 @@ class groupManagement extends plugin
     $primaries= array();
     $ldap= $this->config->get_ldap_link(TRUE);
     $ldap->cd($base);
-    $ldap->search("(&(uid=$regex)(!(uid=*$))(objectClass=posixAccount)(gidNumber=*))", array("gidNumber", "cn"));
+    $ldap->ls("(&(uid=$regex)(!(uid=*$))(objectClass=posixAccount)(gidNumber=*))", array("gidNumber", "cn"));
     $error= $ldap->error;
     while ($attrs= $ldap->fetch()){
       $primaries[$attrs['gidNumber'][0]]= $attrs['cn'][0];
@@ -647,7 +647,7 @@ class groupManagement extends plugin
     if ($groupfilter['functionalgroups'] == "checked"){
       $ldap->cd($base);
       $ldap->set_size_limit($_SESSION['size_limit']);
-      $ldap->search("(&(cn=$regex)(objectClass=posixGroup)(!(|(objectClass=gosaMailAccount)(objectClass=gosaApplicationGroup)$sfilter)))", array("cn", "gidNumber", "description"));
+      $ldap->ls("(&(cn=$regex)(objectClass=posixGroup)(!(|(objectClass=gosaMailAccount)(objectClass=gosaApplicationGroup)$sfilter)))", array("cn", "gidNumber", "description"));
       $error2= $ldap->error;
       while ($attrs= $ldap->fetch()){
         if (!isset($primaries[$attrs['gidNumber'][0]])){
@@ -696,7 +696,6 @@ class groupManagement extends plugin
       $_SESSION['limit_exceeded']= TRUE;
     }
 
-    $this->grouplist = array();  
     foreach ($res as $value){
       $this->grouplist[$value['gidNumber'][0]]= $value;
     }