From: hickert Date: Thu, 17 Jul 2008 13:44:49 +0000 (+0000) Subject: Updated FAI X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb7f8b81eee670736bb82a92c7c102a4eb30d245;p=gosa.git Updated FAI -Append FAIstate. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11708 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 34c367465..fd763df9f 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -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 */