Code

check opened zone for duplicate entries
authorzeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jan 2007 23:19:11 +0000 (23:19 +0000)
committerzeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jan 2007 23:19:11 +0000 (23:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5667 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZoneEntries.inc

index f749c12ee8e3ea1cdafd7b0e5fd6f036b6524017..50812871960c60f872fcc874222198b83a7f53d2 100644 (file)
@@ -208,13 +208,13 @@ class servDNSeditZoneEntries extends plugin
       /* Renaming check for existing devices 
        */
       if(isset($device['OrigCn'])  && ($DevName != $device['OrigCn'] )){
-        $ldap->cd($this->config->current['BASE']);
+        $ldap->cd($this->dn);
         $ldap->search("(relativeDomainName=".$DevName.")",array("relativeDomainName"));
         if($ldap->count()){
           $message[] = sprintf(_("Can not rename '%s' to '%s',the destination name already exists."),$device['OrigCn'],$DevName);
         }
       }elseif(!isset($device['OrigCn'])){
-        $ldap->cd($this->config->current['BASE']);
+        $ldap->cd($this->dn);
         $ldap->search("(relativeDomainName=".$DevName.")",array("relativeDomainName"));
         if($ldap->count()){
           $message[] = sprintf(_("Can not create '%s',the destination name already exists."),$DevName);