Hi Clement, I finally came around to look at this again. The issue seems to be that the mainIdentifier javascript is applied twice during modification checking in the BeanComparator. This patch fixes the problem for me:
Index: BeanComparator.java
===================================================================
--- BeanComparator.java (revision 2025)
+++ BeanComparator.java (working copy)
@@ -158,7 +158,7 @@
IBean itmBean = cloneSrcBean(task, srcBean, dstBean);
// get modification type to perform
- LscModificationType modificationType =
calculateModificationType(task, itmBean, dstBean);
+ LscModificationType modificationType =
calculateModificationType(task, srcBean, dstBean);
// if there's nothing to do, just return
if (modificationType == null) {
calculateModificationType() clones the srcBean parameter again and in the
current version the already-cloned itmBean is passed in. Thus, in
calculateModifications, the DN is modified twice and fails the equals check,
causing the modrdn modification type. Can somebody verify this?
Thanks!
Marian
> On 28. Nov 2014, at 13:48, Clément OUDOT <[email protected]> wrote:
>
>
>
> 2014-11-28 13:41 GMT+01:00 Marian Harbach <[email protected]
> <mailto:[email protected]>>:
> Hi,
>
> I successfully managed to sync one LDAP to an OpenLDAP. However, when I run
> the same task a second time, I get the following warning for each entry:
>
> Nov 28 13:21:04 - WARN - WARNING: updating the RDN of the entry will cancel
> other modifications! Relaunch synchronization to complete update.
> Nov 28 13:21:04 - INFO - # Renaming object
> uid=abc1,ou=SubOrg,ou=Org,o=LVN,c=de for t02
> # Fri Nov 28 13:21:04 CET 2014
> dn: uid=abc1,ou=SubOrg,ou=Org,o=LVN,c=de
> changetype: modrdn
> newrdn: uid=abc1
> deleteoldrdn: 1
> newsuperior: ou=SubOrg,ou=Org,o=LVN,c=de
>
> And then, at the end of the task, lsc does not finish but hangs and I ahve to
> restart my OpenLDAP as well. What am I doing wrong?
>
>
> Seems LSC try to rename all your entries. Maybe a bad configuration of
> <mainIdentifier>
>
>
>
> Clément.
--
Marian Harbach
Research Associate
Distributed Computing and Security Group
Leibniz Universität Hannover
Schloßwender Str. 5, 30159 Hannover, Germany
Tel. +49 (0) 511 762 79 9038
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

