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
On Monday, January 21, 2019, 5:00:19 AM CST,
[email protected]
<[email protected]> wrote:
Send lsc-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lsc-users digest..."
Today's Topics:
1. Re: Need Assistance Using the Script to Bypass AD Range
(Clément OUDOT)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Jan 2019 09:24:32 +0100
From: Clément OUDOT <[email protected]>
To: [email protected]
Subject: Re: [lsc-users] Need Assistance Using the Script to Bypass AD
Range
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Le 20/01/2019 à 00:13, Mark Bixler a écrit :
>
> Hello -
>
Hello Mark,
> Using the instructions at
> https://lsc-project.org/documentation/tutorial/synchronizegroups I am
> able to synchronize groups unless they are large. I know this is due
> to the AD range issue. I have tried using the “Script to bypass AD
> range” at https://lsc-project.org/documentation/howto/adrangescript.
>
>
>
> I understand how to register the external script in my lsc.conf and
> how to call the function. I’ve struggled for several days in a row
> trying to understand how to use the script in my lsc.conf. I’ve read
> every post I can find and tried everything I can think of to try.
>
> Below is my group sync task (also attached as a PDF). It works fine
> for small/medicum groups. Please help me understand how I reference
> the “Script to bypass AD range” in this configuration properly. I’ve
> also attached the bypass script I’m referencing in my task (I called
> it bypass.js).
>
>
I would say you need to replace:
var membersSrcDn = srcBean.getDatasetValuesById("member");
By:
var membersSrcDn = getRangeValues("member");
But I never tried it.
--
Clément Oudot | Identity Solutions Manager
[email protected]
Worteks | https://www.worteks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.lsc-project.org/pipermail/lsc-users/attachments/20190121/b14373ee/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
------------------------------
End of lsc-users Digest, Vol 108, Issue 5
*****************************************
_______________________________________________________________
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