summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df5933d)
raw | patch | inline | side by side (parent: df5933d)
author | zeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Jan 2007 23:19:11 +0000 (23:19 +0000) | ||
committer | zeph <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 | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index f749c12ee8e3ea1cdafd7b0e5fd6f036b6524017..50812871960c60f872fcc874222198b83a7f53d2 100644 (file)
/* 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);