On 21/01/2019 16:45, Mark wrote:
> I tried changing size to length like this (and used RJS instead of JS) like
> this:
>
> var membersSrcDn = getRangeValues("member");
> var membersDstDn = [];
> for (var i=0; i<membersSrcDn.length; i++) {
> var memberSrcDn = membersSrcDn.get(i);
> var uid = "";
> try {
> uid = srcLdap.attribute(memberSrcDn,
> "uid").get(0);
> } catch(e) {
> continue;
> }
> var destDn = ldap.search("OU=Users,OU=RMDV,OU=JLR",
> "(sAMAccountName=" + uid + ")");
> if (destDn.length == 0 || destDn.length > 1) {
> continue;
> }
> var destMemberDn = destDn.get(0) + "," +
> ldap.getContextDn();
> membersDstDn.push(destMemberDn);
> }
> membersDstDn
> ]]>
>
>
> Now I get this error: Reason: javax.script.ScriptException:
> sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function get in
> object
Hi Mark,
You are posting your questions on a summary of the recent activity on LSC, it
won't do well with LSC mailing list archive system. I have replied earlier on
your original thread about your problem with getRangeValues function.
--
Soisik Froger | Software Architect
[email protected]
+33 6 49 00 09 55
Worteks | https://www.worteks.com
_______________________________________________________________
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