Code

Updated userRDN migrate method
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 15:41:33 +0000 (15:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 15:41:33 +0000 (15:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18399 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_migrate_userRDN.inc

index 7dc90db6fda97b4982fdbc078651cd08cd237c43..bdfb02b547d1f735d8e5e5db49caac080f4e9e8d 100644 (file)
@@ -128,9 +128,10 @@ class migrate_userRDN implements propertyMigration
             }
 
             // Now move the objects to the new traget
+            $tmp = new plugin($this->config,NULL);
             foreach($this->found['move'] as $id => $data){
                 if(isset($_POST["migrateEntry_{$id}"])){
-                    $ldap->rename_dn($data['from'], $data['to']);
+                    $tmp->move($data['from'], $data['to']);
                 }
             }
             $this->checkForIssues();