From 649c92b7f9a81e3e2fa480194ffe2726294786ef Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2005 10:50:23 +0000 Subject: [PATCH] fixed group search git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1174 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index fe9c5119c..a086bb9c1 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -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; } -- 2.30.2