Hello I would like to jump on this because I need to do something similar I guess ?
I use LSC to sync from openldap to openldap , but the destination instance would be supann compliant, so lots of dataset to create or modify attributes (seems to work fine for now ...) Moreover I want to split people from src to dst to different branches. for example if in src employeeType=staff dst would be ou=staff,ou=people,dc=domain,dc=fr and if src employeeType=student dst would be ou=student,ou=people,dc=domain,dc=fr (in src everyone is "flat" at ou=people ) so I am asking how to set mainIdentifier in order to achieve that purpose ? without changes in sub-branches at dst , it worked fine with <mainIdentifier>srcBean.getMainIdentifier()</mainIdentifier> but in order to split in differents branches, how should I set this ? thanks . ----- Mail original ----- De: "Clément OUDOT" <[email protected]> À: [email protected] Envoyé: Lundi 6 Mai 2019 15:12:51 Objet: Re: [lsc-users] sub ou and test of existence of destination identity Le 06/05/2019 à 11:42, Gallavardin Antoine a écrit : Hello Hello Antoine, BQ_BEGIN 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 ) BQ_END 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 [ mailto:[email protected] | [email protected] ] Worteks | [ https://www.worteks.com/ | 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 _______________________________________________________________ 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

