2014-08-26 15:53 GMT+02:00 Maxime Pelletier <[email protected]>:
> Hi all, > > I created a task to populate a custom attribute named "intern", in which I > put the ID of the intern in the entry of the person in charge of this > intern. > > So I have a source table with 2 columns : employeeID and internID > > The task I created is quite simple. It passes through each line of the > table, retrieve the good employee, and then set the "intern" attribute with > the content of the internID in the source table. > > My problem is that when the intern leaves, and then remove the line from > the SQL table, the attribute "intern" is not deleted because the entry of > the employee is not synchronized anymore (not in source table). > > As far as I know, I can't use the "clean" phase since I don't want to > delete the whole entry (just the attribute). > > Would anybody have some advice for me in order to delete these old > "intern" attributes? > There is no standard solution as the clean phase will try to delete the entry, not the attribute. In this case, we use the "executable" plugin, which allows to launch a specific script for the delete action: http://lsc-project.org/wiki/documentation/plugins/executable Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

