From da0f80a3fe80cd7afea18500b3e7fb0bcc905621 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 9 Apr 2008 15:43:10 +0000 Subject: [PATCH] Not working FAI Profile remove updates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_FAI.inc | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 32d129c42..379b53f6c 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -158,7 +158,34 @@ class FAI $addObj['diff'] = FALSE; } } + }else{ +# $ldap = $config->get_ldap_link(); +# $ldap->cd($config->current['BASE']); +# $ldap->cat(FAI::get_parent_release_object($Current_DN,TRUE)); +# +# $attrs = $ldap->fetch(); +# if($attrs){ +# $cn = $attrs['cn'][0]; +# +# $profiles = FAI::get_all_objects_for_given_base(FAI::get_release_dn($Current_DN),"(&(objectClass=FAIprofile)(FAIclass=".$cn."))"); +# print_a($profiles); +# foreach($profiles as $dn){ +# +# $ldap->cat($dn); +# $attrs = FAI::prepare_ldap_fetch_to_be_saved($ldap->fetch()); +# print_a($attrs); +# if($attrs){ +# +# if(in_array($cn,$attrs['FAIclass'])){ +# +# } +# } +# } +# } } + + + $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); -- 2.30.2