From 2d1474914d1fb0c0b981360f463b20621a76a80c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Aug 2007 10:12:27 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_termDNS.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2