Code

Not working FAI Profile remove updates
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 15:43:10 +0000 (15:43 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 15:43:10 +0000 (15:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10306 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_FAI.inc

index 32d129c424ccd6a9bfa08fb7ac9831ade57d4a58..379b53f6caaf22564599b596226838390aeea5f1 100644 (file)
@@ -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);