From: hickert Date: Mon, 19 May 2008 07:04:11 +0000 (+0000) Subject: Added fall back to old style move method. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=275487e326b02d60324fe3cd87dd9010ea66d97e;p=gosa.git Added fall back to old style move method. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10942 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 */