Thank you, that worked well! ☺


--------------------
Jutta Biernath
Freie Universität Berlin
Zentraleinrichtung für Datenverarbeitung (ZEDAT)
Identity & Customer Management, FUDIS
Fabeckstr. 32
14195 Berlin
Tel. +49 30 838-75090
Fax +49 30 838-475090

Von: Marcin Baluta [mailto:[email protected]]
Gesendet: Dienstag, 25. November 2014 14:31
An: Marcin Baluta; Biernath, Jutta; Clément OUDOT
Cc: lsc-userslsc-users
Betreff: RE: [lsc-users] OpenLDAP 2 LDAP synchronization

Length without ()

Marcin Baluta
Systems Administrator


tyntec GmbH
Semerteichstr. 54 - 56 | 44141 Dortmund, Germany
T +49 231 477 90 405 | F +49 231 108 799 2
www.tyntec.com<http://www.tyntec.com/>

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Marcin Baluta
Sent: Dienstag, 25. November 2014 14:29
To: Biernath, Jutta; Clément OUDOT
Cc: lsc-userslsc-users
Subject: Re: [lsc-users] OpenLDAP 2 LDAP synchronization

Hi Jutta,

change it to length... should work ;)

Kind regards

Marcin Baluta
Systems Administrator


tyntec GmbH
Semerteichstr. 54 - 56 | 44141 Dortmund, Germany
T +49 231 477 90 405 | F +49 231 108 799 2
www.tyntec.com<http://www.tyntec.com/>

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Biernath, Jutta
Sent: Dienstag, 25. November 2014 14:28
To: Clément OUDOT
Cc: lsc-userslsc-users
Subject: Re: [lsc-users] OpenLDAP 2 LDAP synchronization

Hello, Clément,

I’ve tried this:
http://lsc-project.org/wiki/documentation/tutorial/synchronizegroups
But when I do the JavaScript Expression will not run. The error message is:

Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: 
TypeError: Cannot find function size in object ………..

And if I replace the size()-Function by the length()-Function (= the function 
that was used in earlier samples)  I get:

Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: 
TypeError: Cannot find function get in object ……

Do you have an idea what could be the reason for this? Must I install an 
additional module?

My LSC version is 2.1.1

Thank you!


Regards,

Jutta Biernath

--------------------
Jutta Biernath
Freie Universität Berlin
Zentraleinrichtung für Datenverarbeitung (ZEDAT)
Identity & Customer Management, FUDIS
Fabeckstr. 32
14195 Berlin
Tel. +49 30 838-75090
Fax +49 30 838-475090

Von: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] Im Auftrag von Clément OUDOT
Gesendet: Montag, 24. November 2014 15:16
An: Marcin Baluta
Cc: lsc-userslsc-users
Betreff: Re: [lsc-users] OpenLDAP 2 LDAP synchronization



2014-11-24 13:48 GMT+01:00 Marcin Baluta 
<[email protected]<mailto:[email protected]>>:
Hello Clement,

I still cannot manage to synchronize group membership. Actually – I’m not sure 
what script should I use to achieve this.

Currently I have this taken from your LSC 1.1 tutorial 
(http://lsc-project.org/wiki/documentation/1.1/tutorials/synchronizegroups):

<dataset>
         <name>member</name>
         <policy>FORCE</policy>
         <forceValues>
          <string><![CDATA[var umembers = 
srcBean.getAttributeValuesById("uniqueMember").toArray() ;
    for (var i=0; i<umembers.length; i++ ) {
        try {
            umembers[i] = ldap.attribute(ldap.list( 
"OU=Users,OU=imported,OU=test,DC=xxx,DC=xxx","(sAMAccountName="+(srcLdap.attribute(umembers[i],
 'uid').get(0)
                    + ")"
                )).get(0), 'distinguishedName').get(0)
        } catch (e) {
            umembers[i]=null
        }
    }
    var members = new Array();
    var j=0;
    for (var i=0; i<umembers.length; i++) {
        if (umembers[i]!=null) members[j++]=umembers[i]
    }
    members;]]>
          </string>
         </forceValues>
       </dataset>

Any help kindly appreciated ;)
.. and of course I remember about beer for you ☺


Hi,
I just write a new tutorial that works with LSC 2: 
http://lsc-project.org/wiki/documentation/tutorial/synchronizegroups
It should help you to achieve your task.



Clément.
_______________________________________________________________
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