On 16/06/2017 16:39, Alexander Herr wrote:
So I have to use more complicated scripts for synchronizing from OpenLDAP to 
AD, thus I externalized the javascript logic into an external file, as 
described here:

https://lsc-project.org/documentation/2.1/scripting/start

However, once I use the <scriptInclude> markup (and it picks up my file), 
previous scripts stop working and I get a “syntax error” exception. This is weird!

I also tried moving the failing parts themselves into the external js-file, but 
that does not make it work either.

One thing I noticed though: In the documentation, the test() function in the 
example does not receive arguments. Are arguments supported for functions in 
external js-files?

Any other idea, why this isn’t working?

All the best,

Alex.



_______________________________________________________________
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

Hi Alexander,

Could you provide a some js/xml code and complete error message to see exactly 
how you're passing arguments to functions.

According to this thread 
https://lists.lsc-project.org/pipermail/lsc-users/2014-November/002094.html),
-functions can receive parameters though it's apparently limited to srcBean and 
dstBean.
- when parameter are not received, error says something like : ReferenceError: "[...]" is 
not defined, not "syntaxt error".

Good luck
--
Soisik
_______________________________________________________________
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

Reply via email to