diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index 23bfb40585810f3434b83f5a159e8c4aa0b56f56..5fcdd76e05a563f4344055ae917d5fc037614eb9 100644 (file)
function remove_from_parent()
{
+
+ $ldap = $this->config->get_ldap_link();
+
+ /************
+ * DNS Handling
+ ************/
+
if($this->DNS_is_account){
- $ldap = $this->config->get_ldap_link();
$tmp = array();
$this->dnsEntry['exists'] = false;
}
}
}
+
+
+ /************
+ * DHCP Handling
+ ************/
+
+ /* DHCP removed */
+ if($this->dhcp_is_Account){
+ $ldap->rmdir_recursive($this->dhcpHostEntry['dn']);
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dhcpHostEntry['dn'], LDAP_DEL, get_class()));
+ }
+ }
}
($this->dhcpHostEntry['dhcpStatements'] == "" || count($this->dhcpHostEntry['dhcpStatements']) == 0) ){
unset($this->dhcpHostEntry['dhcpStatements']);
}
-
+
/* DHCP removed */
if($this->initial_dhcp_is_Account && !$this->dhcp_is_Account){
$ldap->rmdir_recursive($this->dhcpHostEntry['dn']);