Le 06/05/2019 à 11:42, Gallavardin Antoine a écrit :
>
> Hello
>
Hello Antoine,
> The only workaround I found is :
> <![CDATA[js:
> var dest_dn="";
> try {
> dest_dn = dstBean.getMainIdentifier();
> }catch(err){
> dest_dn = "CN=" +
> srcBean.getDatasetFirstValueById("cn") + ",OU=people, dc=site"
> }
> dest_dn;
> ]]>
>
>
> Is it a correct way ? maybe a better solution exist ( I see in
> archive that lsc 2.2 will be more flexible in this case )
>
In this case, I often split the task between a creation taks and a
modification task. The creation task will add entries in ou=people. The
modification task will use the empty mainIdentifier (or like you have
done the dstBean.getMainIdentifier()).
But your solution seems correct too.
--
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