2018-02-02 8:36 GMT+01:00 Lior Dotan <[email protected]>: >>> id=CN=GroupA,OU=ad-testing,DC=ad-testing,DC=test,DC=io >>> Reason: javax.script.ScriptException: ReferenceError: "ldap" is not >>> defined in nashorn:mozilla_compat.js at line number 67 >>> Feb 01 18:15:21 - ERROR - Error while synchronizing ID {cn=[Bass >>> Players]}: org.lsc.exception.LscServiceException: >>> javax.script.ScriptException: ReferenceError: "ldap" is not defined in >>> nashorn:mozilla_compat.js at line number 67 >> >> >> ldap is the LDAP connection object linked to the destination service. >> It should be defined if you use an ldapDestinationService. It can be >> used with scriptable JNDI services: >> https://lsc-project.org/javadoc/2.1-SNAPSHOT/org/lsc/jndi/ScriptableJndiServices.html > I see. > In my case I am using the ExecutableLdifDestinationService, will that > work with your script?
In this case you only have srcLdap object and you must adapt the script to use only this source connection to resolve groups. In my script, destination connection is only used to convert source user DN into destination user DN. Clément. _______________________________________________________________ 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

