index e4e7314ff440b78b0bb53dc696112c57144c6ba8..b954d61fc76e44354218087d2121af89f96b4db2 100644 (file)
foreach($deps_to_search as $fai_base){
/* Ldap search for fai classes specified in this release */
- $res_tmp = get_list($filter,"fai",$fai_base,array("dn","objectClass","FAIstate"),GL_SUBSEARCH | GL_SIZELIMIT);
+ $attributes = array("dn","objectClass","FAIstate","cn");
+ $res_tmp = get_list($filter,"fai",$fai_base,$attributes,GL_SUBSEARCH | GL_SIZELIMIT);
/* check the returned objects, and add/replace them in our return variable */
foreach($res_tmp as $attr){
}
}
-
/* In detailed mode are some additonal informations visible */
if($detailed){
}
/* Append objectClass to resulsts */
- $buffer['objectClass'] = $attr['objectClass'];
- unset($buffer['objectClass'][0]);
+ foreach($attributes as $val){
+ if(isset($attr[$val])){
+ $buffer[$val] = $attr[$val];
+ }
+ }
+ unset($buffer['objectClass']['count']);
}
/* Add this object to our list */
}
}
}
-
- $_SESSION['FAI_objects_to_save'][$Current_DN] = $addObj;
+ $FAI_objects_to_save = session::get('FAI_objects_to_save') ;
+ $FAI_objects_to_save[$Current_DN] = $addObj;
+ session::set('FAI_objects_to_save',$FAI_objects_to_save);
}
save_FAI_object($parent_obj,$objectAttrs);
if(($parent_obj != $Current_DN)){
- print_red(sprintf(_("Error, following objects should be equal '%s' and '%s'"),$parent_obj,$Current_DN));
+ msg_dialog::display(_("Error"), sprintf(_("Error, following objects should be equal '%s' and '%s'"),$parent_obj,$Current_DN), ERROR_DIALOG);
}
}
}