summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ae30b9)
raw | patch | inline | side by side (parent: 7ae30b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Feb 2008 06:42:50 +0000 (06:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Feb 2008 06:42:50 +0000 (06:42 +0000) |
-Do not try to copy an object if source and destination dn only differ in upper/lowercase.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8879 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8879 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
plugins/admin/systems/class_printGeneric.inc | patch | blob | history | |
plugins/admin/users/tabs_user.inc | patch | blob | history |
index 9a25100ff3f3e3b25b20975f4325c4c02c8999aa..c02a3b86c263d8b8af8c73faf535006763063b0b 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
function move($src_dn, $dst_dn)
{
+
+ /* Do not copy if only upper- lowercase has changed */
+ if(strtolower($src_dn) == strtolower($dst_dn)){
+ return(TRUE);
+ }
+
/* Copy source to destination */
if (!$this->copy($src_dn, $dst_dn)){
return (FALSE);
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 5b85ad59f98312cecf1ed02e3f8e9a14def27177..bd476e1b10973753b698a09ccdc588a90d03744d 100644 (file)
$ldap->add($this->attrs);
$this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
} else {
- if (strtolower($this->dn) != strtolower($this->orig_dn)){
+ if ($this->dn != $this->orig_dn){
$this->move($this->orig_dn, $this->dn);
}
index 5620ef066b7e310b4d07820690a75c8977a2bbab..4b709502ca43507f41c19a407677f41bc41e6563 100644 (file)
if ($this->dn != 'new'){
$new_dn= $baseobject->new_dn;
- if (strtolower($this->dn) != strtolower($new_dn)){
+ if ($this->dn != $new_dn){
$baseobject->move($this->dn, $new_dn);
$this->by_object['user']= $baseobject;