Hello Clément, Thanks a lot for your advised answers! The goal of my message was to discover opportunities to delete or add an entry inside a task. This weekend, I came to the same mechanism you decribe in your answer.
Merci pour ton expertise sur mes mails, tu m'as bien dépanné notamment avec la gestion des homonymies. A bientôt! Patrice 2016-02-15 10:37 GMT+01:00 Clément OUDOT <[email protected] >: > > > Le 14/02/2016 00:06, Patrice M. a écrit : > > Hi LSC Users, > > I'd like to ask you a small question that I'm having hard time to solve. > > I'm doing a fusion of inetOrgPerson entries coming from various LDAP > containers. But, even if identical emails can be found, there cannot exist > any "mail" attribute duplicate in the resulting LDAP container. > > So, what I want to do is: > - define priorities upon sources and order LSC tasks accordingly; > - during each task, I want to find if the srcBean "mail" attribute value > already exists > - If yes, delete the existing entry; > - then push the new one. > > Do you know how can I do that? > thank you very much by advance for your answers. > > > Hello Patrice, > > LSC run tasks in the order they appear in lsc.xml, so you can manage > priorities when you write tasks in this file. You can also launch LSC for > each task, for example: > $ lsc -s task1; lsc -s task2; lsc -s task3 > > For the other part of your message, you can write a create/update > condition that will check the srcBean mail attribute, and decide if this > task will allow to create/update the destination entry. You cannot delete > and add an entry with js code inside a task. > > -- > Clément OUDOT > Consultant en logiciels libres, Expert infrastructure et sécurité > Savoir-faire Linux > > > _______________________________________________________________ > Ldap Synchronization Connector (LSC) - http://lsc-project.org > > lsc-users mailing list > [email protected] > http://lists.lsc-project.org/listinfo/lsc-users >
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

