From 3fa8a3fbdd9932f52060d7fa36ff2a0511525b50 Mon Sep 17 00:00:00 2001 From: zeph Date: Tue, 30 Jan 2007 23:19:11 +0000 Subject: [PATCH] check opened zone for duplicate entries git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5667 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZoneEntries.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index f749c12ee..508128719 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -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); -- 2.30.2