Le 2014-11-04 16:35, POISSON Frédéric a écrit :
Hello Raphaël,

Inside my lsc.xml i have a function call like this :
    <mainIdentifier>js:mainIdentifierUsersInit()</mainIdentifier>

And inside my js file my function use something like :
   var dn = srcLdap.search("ou=groups", "(seeAlso=" + base +
")").get(0);

Now when i try to pass srcLdap as argument inside lsc.xml like this :

<mainIdentifier>js:mainIdentifierUsersInit(srcLdap)</mainIdentifier>

And change function initialisation like this :
function mainIdentifierUsersInit(srcLdap)
{
...
}

I have this error :
Nov 04 16:32:14 - ERROR - Fail to compute expression:
mainIdentifierUsersInit(srcLdap) on id=uid=xxxxxx,dc=xxxxxxxx
Reason: javax.script.ScriptException:
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError:
"srcLdap" is not defined. (<Unknown source>#3) in <Unknown source> at
line number 3

Do i have made an error ?

In mainIdentifier, only srcBean et dstBean are available -- need to check if there is a good reason for this.

Regards,
Raphaël Ouazana.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to