[lsc-users] Sync AD groups to OpenLDAP

Clément OUDOT clem.oudot at gmail.com
Wed Oct 22 17:25:18 CEST 2014


2014-10-22 16:01 GMT+02:00 Renaud <renaud.maubon at gmail.com>:

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-users/attachments/20141022/c6befe0c/attachment.htm>


More information about the lsc-users mailing list