X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions_FAI.inc;h=d542bd4c95d31aa2af21d72270b26bae1721e271;hb=ca55fae1641ace4e5faff4d0eca0f74e3902eee5;hp=9fc2270b88af2c63d9cc286fe2db494bfb9f92e2;hpb=cf79f6e6ff496821a54dbcee22f7ec6823591f01;p=gosa.git 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])){