From 275487e326b02d60324fe3cd87dd9010ea66d97e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 19 May 2008 07:04:11 +0000 Subject: [PATCH] Added fall back to old style move method. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10942 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 440c1e801..3765ed2d0 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -999,12 +999,17 @@ class plugin /* Try to move the entry instead of copy & delete - - Currently still deactivated. !! - */ if(TRUE){ - return($this->rename($src_dn, $dst_dn)); + + /* Try to move with ldap routines, if this was not successfull + fall back to the old style copy & remove method + */ + if($this->rename($src_dn, $dst_dn)){ + return(TRUE) + }else{ + // See code below. + } } /* Copy source to destination */ -- 2.30.2