Soisik -
My apologies. If possible, please delete this thread. My mistake.
Again, sorry ----
Mark
On Monday, January 21, 2019, 10:08:37 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: lsc-users Digest, Vol 108, Issue 5 (Mark)
2. Re: Need Assistance Using the Script to Bypass AD Range (Mark)
3. Re: lsc-users Digest, Vol 108, Issue 5 (Soisik Froger)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Jan 2019 15:45:10 +0000 (UTC)
From: Mark <[email protected]>
To: [email protected]
Subject: Re: [lsc-users] lsc-users Digest, Vol 108, Issue 5
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
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
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.lsc-project.org/pipermail/lsc-users/attachments/20190121/9277555b/attachment-0001.html>
------------------------------
Message: 2
Date: Mon, 21 Jan 2019 15:55:41 +0000 (UTC)
From: Mark <[email protected]>
To: "[email protected]"
<[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"
Thank you, Clement. I tried your first suggestion, and I got this error: Cannot
find function size in object.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.lsc-project.org/pipermail/lsc-users/attachments/20190121/4a411787/attachment-0001.html>
------------------------------
Message: 3
Date: Mon, 21 Jan 2019 17:07:43 +0100
From: Soisik Froger <[email protected]>
To: [email protected]
Subject: Re: [lsc-users] lsc-users Digest, Vol 108, Issue 5
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
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
------------------------------
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 7
*****************************************
_______________________________________________________________
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