Le 29/10/2018 à 16:07, Martin Röh a écrit :
> Yes, that is what I will try, but I don't know how can I do it with
> conditions. I think the conditions are global for the complete sync
> process ? Perhaps you have an example for me how I can do it ?
>
Hello Martin,
conditions are evaluated for each entry. It is a javascript expression
that is evaluated (like in a dataset). It the expression returns true,
the condition is validated and the entry can be written
(create/update/delete). If the condition is false, the entry is not updated.
Example:
<conditions>
<create>false</create>
<update><![CDATA[rjs:
var update = true;
if (
srcBean.getDatasetFirstValueById("userPassword").startsWith("{") ) {
update = false;
}
update;
]]></update>
<delete>false</delete>
<changeId>false</changeId>
</conditions>
Here the task will only update the entry if the value in userPassword
field is in cleartext.
--
Clément Oudot | Identity Solutions Manager
[email protected]
Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users