From: hickert Date: Wed, 10 May 2006 07:36:25 +0000 (+0000) Subject: Fixed size_limit for systems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a127fd3f9135141ff7d883e1655b1f05ce8fd97;p=gosa.git Fixed size_limit for systems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3251 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index f1c1f14d1..2c92aa27f 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -360,6 +360,7 @@ class groupManagement extends plugin /* Prepare ldap class */ $ldap= $this->config->get_ldap_link(); $ldap->cd($base); + $ldap->set_size_limit($_SESSION['size_limit']); /******************** @@ -416,7 +417,6 @@ class groupManagement extends plugin Only perfrom this search if ShowFunctionalGroups is unchecked, else leave arre empty */ if(!$ShowFunctionalGroups){ $ldap->cd(get_groups_ou().$base); - $ldap->set_size_limit($_SESSION['size_limit']); $ldap->search("(&(cn=$Regex)(objectClass=posixGroup)(!(|(objectClass=gosaMailAccount)(objectClass=gosaApplicationGroup)$sfilter)))", array("cn", "gidNumber", "description")); $error2= $ldap->error; while ($attrs= $ldap->fetch()){ diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 8455a6a10..f5b14ce3f 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -578,14 +578,14 @@ class systems extends plugin if($oc['CLASS'] != ""){ $filter = "(|(&".$userregex."(objectClass=".$oc['CLASS'].")(cn=".$this->DivListSystem->Regex.")))"; $res = array_merge($res,get_list($filter,$this->ui->subtreeACL, $base, - array("cn", "description", "macAddress", "objectClass", "sambaDomainName", "FAIstate"), GL_NONE | GL_SUBSEARCH)); + array("cn", "description", "macAddress", "objectClass", "sambaDomainName", "FAIstate"), GL_NONE | GL_SUBSEARCH | GL_SIZELIMIT)); } }else{ /* User filter? */ if($oc['CLASS'] != ""){ $filter = "(|(&".$userregex."(objectClass=".$oc['CLASS'].")(cn=".$this->DivListSystem->Regex.")))"; $res = array_merge($res,get_list($filter,$this->ui->subtreeACL, $oc['TREE'].$base, - array("cn", "description", "macAddress", "objectClass", "sambaDomainName", "FAIstate"), GL_NONE)); + array("cn", "description", "macAddress", "objectClass", "sambaDomainName", "FAIstate"), GL_NONE | GL_SIZELIMIT)); } } } @@ -594,7 +594,7 @@ class systems extends plugin /* Search for incoming objects */ $filter = "(|(&".$userregex."(objectClass=goHard)(cn=".$this->DivListSystem->Regex.")))"; $res = array_merge($res,get_list($filter,$this->ui->subtreeACL, "ou=incoming,".$base, - array("cn", "description", "macAddress", "objectClass", "sambaDomainName"), GL_NONE)); + array("cn", "description", "macAddress", "objectClass", "sambaDomainName"), GL_NONE | GL_SIZELIMIT)); /* Get all gotoTerminal's */ foreach ($res as $value){