From: hickert Date: Wed, 10 May 2006 08:29:43 +0000 (+0000) Subject: fix for ObjectClasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9fb347c69dd091897044a7f52df059fc1071b3fe;p=gosa.git fix for ObjectClasses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3257 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 3fba9649c..5497098cc 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -422,9 +422,16 @@ class faiHook extends plugin } } - $tmp['objectClass'] = $this->subClasses; - + $sub_dn = "cn=".$obj['cn'].",".$this->dn; + plugin::plugin($this->config,$sub_dn); + $tmp['objectClass'] = $this->attrs['objectClass']; + + foreach($this->subClasses as $class){ + if(!in_array($class,$tmp['objectClass'])){ + $tmp['objectClass'][] = $class; + } + } if($obj['status']=="new"){ $ldap->cat($sub_dn);