Code

Updated FAI
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 13:44:49 +0000 (13:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 13:44:49 +0000 (13:44 +0000)
-Append FAIstate.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11708 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 34c36746540238525e476cf333b0460a01f25543..fd763df9f884622f1c406e363bef7e8fdc5f2bf5 100644 (file)
@@ -1084,6 +1084,7 @@ class FAI
 
           /* Add marking attribute */
           $attr['objectClass'][] = "FAIbranch";
+          $attr['FAIstate'] = $type;
 
           /* Add this entry */
           $ldap->modify($attr);
@@ -1114,6 +1115,10 @@ class FAI
         }
         unset($attr['count']);
         unset($attr['dn']);
+        if(!in_array("FAIclass",$attr['objectClass'])){
+          $attr['objectClass'][] = "FAIobject";
+        }
+        $attr['FAIstate'] = $type;
 
         /* Add entry
          */