We should also port this fix form 5.0-10 to 5.2-3 +++ This bug was initially created as a clone of Bug #58739 +++ Renaming a parent ou causes duplicates if children are renamed How to reproduce (all renames are in AD, with read only connector): Add ou1 Add ou1,ou1.1 Add ou1,ou1.1,ou1.1.1 Rename ou1,ou1.1->ou1,ou1.2 Rename ou1,ou1.2,ou1.1.1->ou1,ou1.2,ou1.2.1 Check ucs ldap -> You should now have ou1,ou1.2,ou1.1.1 and ou1,ou1.2,ou1.2.1 If you rename a user in ou1,ou1.2,ou1.2.1 (which was created in ou1,ou1.1,ou1.1.1) it will be "duplicated" into ou1,ou1.2,ou1.2.1 (the user was never moved in UCS and is exists in ou1,ou1.2,ou1.1.1)