Code

Ensure that dhcpServiceDN will be updated to currect dn, if parent is renamed or...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 09:19:14 +0000 (09:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 09:19:14 +0000 (09:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7153 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDHCP.inc

index 6538952b1e1840ecf26a676013b46b498c10dc94..168d7a8e85d03bafa5b7c84029cf9166f8bfa60c 100644 (file)
@@ -419,8 +419,10 @@ class servdhcp extends plugin
       }
     }
 
-    /* Self modify and place service dn entry */
-    $this->dhcpServiceDN= $this->dn;
+    $this->dhcpServiceDN= $this->serviceDN;
+    if($this->dn != $this->orig_dn){
+      $this->dhcpServiceDN= preg_replace("/".normalizePreg($this->orig_dn)."$/i",$this->dn,$this->dhcpServiceDN);
+    }
 
     plugin::save();