From: hickert Date: Thu, 30 Nov 2006 07:23:39 +0000 (+0000) Subject: Added sizelimit to fai management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5aa3a18ab2d37eab8f040f988e767bc6d92daf5;p=gosa.git Added sizelimit to fai management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5261 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_FAI.inc b/include/functions_FAI.inc index 9fc2270b8..d542bd4c9 100644 --- a/include/functions_FAI.inc +++ b/include/functions_FAI.inc @@ -37,14 +37,12 @@ function get_all_objects_for_given_base($Current_DN,$filter,$detailed = false) foreach($deps_to_search as $fai_base){ /* Ldap search for fai classes specified in this release */ - $ldap->cd($fai_base); - $ldap->search($filter,array("dn","objectClass","FAIstate")); - + $res_tmp = get_list($filter,"fai",$fai_base,array("dn","objectClass","FAIstate"),GL_SUBSEARCH | GL_SIZELIMIT); + /* check the returned objects, and add/replace them in our return variable */ - while($attr = $ldap->fetch()){ + foreach($res_tmp as $attr){ $buffer = array(); -# $name = str_ireplace($release,"",$attr['dn']); $name = preg_replace("/".normalizePreg($release)."/i","",$attr['dn']); if(isset($attr['FAIstate'][0])){