Thanks

It works only for one user, but i have 5 users in my test group.

Oher thing : i have created a test group "ListeUSERS" but all my real
groups are named as "Groupe SEC SER/LAB".
If i want to use this groups, i have some problems. I don't know if it's
white spaces or "/"or if there are groups in group, an idea ?

Error while synchronizing ID {cn=Groupe SEC SER/LAB}:
> org.lsc.exception.LscServiceException: javax.script.ScriptException:
> sun.org.mozilla.javascript.WrappedException: Wrapped
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#8)
> in <Unknown source> at line number 8
>


On Wed, Oct 22, 2014 at 5:25 PM, Clément OUDOT <[email protected]> wrote:

>
>
> 2014-10-22 16:01 GMT+02:00 Renaud <[email protected]>:
>
>> Hi
>>
>> I try to get memberUid in an AD group but it's not work ..
>> Can you help me please ?
>>
>>
>>         <dataset>
>>>            <name>memberUid</name>
>>>            <policy>MERGE</policy>
>>>            <forceValues>
>>>              <string>
>>>              <![CDATA[js:
>>>                 var membersSrcDn =
>>> srcBean.getDatasetValuesById("member");
>>>                 for  (var i=0; i<membersSrcDn.size(); i++) {
>>>                         var memberSrcDn = membersSrcDn.get(i);
>>>                         sam = "src-ad".attribute(memberSrcDn,
>>> "sAMAccountName");
>>>
>>>                 }
>>>                 sam
>>>             ]]>
>>>             </string>
>>>            </forceValues>
>>>          </dataset>
>>>
>>
>>
>
>
> Try :
>
> sam = srcLdap.attribute( memberSrcDn, "sAMAccountName").get(0);
>
>
>
> 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