From: hickert Date: Mon, 13 Aug 2007 10:12:27 +0000 (+0000) Subject: Updated dhcp handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d1474914d1fb0c0b981360f463b20621a76a80c;p=gosa.git Updated dhcp handling. When source object was moved/renamend the dhcp settings weren't updated git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7046 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 8f0c21fc7..6a932ef38 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -562,8 +562,10 @@ class termDNS extends plugin if($this->initial_dhcp_is_Account && $this->dhcp_is_Account){ /* DHCP node changed */ - if($this->initial_dhcpParentNode != $this->dhcpParentNode){ + if(($this->initial_dhcpParentNode != $this->dhcpParentNode) || + ($this->cn != $this->OrigCn)){ $attrs = $this->dhcpHostEntry; + $attrs['cn'] = $this->cn; unset($attrs['dn']); unset($attrs['MODIFIED']); $ldap->cd("cn=".$this->cn.",".$this->dhcpParentNode);