Code

Added post events to dns
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Sep 2007 12:46:37 +0000 (12:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Sep 2007 12:46:37 +0000 (12:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7211 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNS.inc

index 7f562a622519991fa8c3719de4457f6aa6872e72..489ebfd113904c5929f59d0dc4fe373b46575535 100644 (file)
@@ -321,6 +321,7 @@ class servdns extends plugin
       $ldap->cd($dn);
       $ldap->rmdir_recursive($dn);
       show_ldap_error($ldap->get_error(), _("Removing DNS entries failed"));
+      $this->handle_post_events("remove",array("dn" => $dn));
     }
 
     /* move follwoing entries
@@ -338,10 +339,12 @@ class servdns extends plugin
         $ldap->cd($dn);
         $ldap->modify ($attrs);
         show_ldap_error($ldap->get_error(), _("Saving DNS entries failed"));
+        $this->handle_post_events("modify",array("dn" => $dn));
       }else{
         $ldap->cd($dn);
         $ldap->add($attrs);
         show_ldap_error($ldap->get_error(), _("Saving DNS entries failed"));
+        $this->handle_post_events("add",array("dn" => $dn));
       }
     }
   }