Code

Added cn to class vars, to be able to use it within post_create etc
[gosa.git] / plugins / admin / systems / class_goLogDBServer.inc
index 6c0ab3a567b1cf42597b74f1451d436c36620b62..254abe369660ae282d0d7b9475f1ee49f55dce00 100644 (file)
@@ -69,6 +69,7 @@ class goLogDBServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -86,6 +87,11 @@ class goLogDBServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }