summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90aa487)
raw | patch | inline | side by side (parent: 90aa487)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Aug 2005 10:50:23 +0000 (10:50 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc
index fe9c5119cb4f63dc1a5724ef522fe641e6cc9bc1..a086bb9c1123bd931d4819a261c26c795a73f18d 100644 (file)
$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];
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]])){
$_SESSION['limit_exceeded']= TRUE;
}
- $this->grouplist = array();
foreach ($res as $value){
$this->grouplist[$value['gidNumber'][0]]= $value;
}