Le 24/10/2016 à 16:21, [email protected] a écrit :
Thank you for this good idea.
I tried with this configuration - but without success.

---------------------------------------
...
<getAllFilter>(objectClass=inetOrgPerson)</getAllFilter>
<getOneFilter>(&amp; (mail={mail}) (objectClass=inetOrgPerson) )</getOneFilter>
<cleanFilter>(&amp; (mail={mail}) (description="NULL") (objectClass=inetOrgPerson) 
)</cleanFilter>
...
<conditions>
<create>false</create>
<update>false</update>
<delete><![CDATA[ srcBean.getDatasetFirstValueById('mail') == 
dstBean.getDatasetFirstValueById(mail) ]]></delete>
<changeId>false</changeId>
</conditions>
...
---------------------------------------

I've got the following error message :

oct. 24 14:12:03 - INFO  - Starting clean for delete-duplicate-entry
oct. 24 14:12:04 - ERROR - Fail to compute expression:  
srcBean.getDatasetFirstValueById('mail') == 
dstBean.getDatasetFirstValueById(mail)  on 
id=uid=user1.rre,dc=contacts,dc=internal
Reason: javax.script.ScriptException: ReferenceError: "srcBean" is not defined 
in nashorn:mozilla_compat.js at line number 67
oct. 24 14:12:04 - ERROR - Error while synchronizing ID {[email protected], 
description=FR}: org.lsc.exception.LscServiceException: javax.script.ScriptException: 
ReferenceError: "srcBean" is not defined in nashorn:mozilla_compat.js at line 
number 67
oct. 24 14:12:04 - ERROR - Unable to delete object uid=user1.rre,dc=contacts,dc=internal 
(org.lsc.exception.LscServiceException: javax.script.ScriptException: ReferenceError: 
"srcBean" is not defined in nashorn:mozilla_compat.js at line number 67)


Indeed srcBean is not defined as there is no corresponding source entry. Find a delete condition that does not need the srcBean.


--
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité
Savoir-faire Linux
137 boulevard de Magenta - 75008 PARIS
Blog: http://sflx.ca/coudot

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to