Le 04/11/2019 à 12:06, Matjaz Premerl a écrit : > Hi, > > I have a question how is it possible to create some logic in external > java script based on some > error which come from LSC. For example I did some error on purpose, > e.g. I'm getting java.lang.Exception: Technical problem while applying > modifications to the destination. > On the other side I have some external script which generate random > values for password and also write this password value in txt file. I > want to achieve such logic, that this writing to txt file is not > happening if LSC synchronization falls with some Exception, that the > AD user is not created at all for whatever reason. Is it possible to > build such logic in custom java script based on errors coming from LSC > tool. > Hello,
I don't think so as the dataset code is run before applying modification to destination. The only solution I can propose is to use the executable plugin, so you call a script that will do the modification on destination, and then update your file if the modification was ok. See https://lsc-project.org/documentation/plugins/executable -- Clément Oudot | Identity Solutions Manager clement.ou...@worteks.com Worteks | https://www.worteks.com _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list lsc-users@lists.lsc-project.org https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users