Issue #78 has been updated by Cl?ment Oudot.

Hello,

I tested this patch this morning, with success. Thanks to Rapha?l and Jonathan 
for this major feature.

I submit you an example, to manage group synchronization (and handling 
javascript exceptions):
<pre>
lsc.syncoptions.fonction.member.delimiter = $
lsc.syncoptions.fonction.member.force_value = var umembers = 
srcBean.getAttributeValuesById("uniqueMember").toArray() ; for (var i=0; 
i<umembers.length; i++ ) { try { umembers[i] = ldap.attribute(ldap.list( 
"ou=USERS", "(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
</pre>

I think it is an interesting use-case.
----------------------------------------
Feature #78: Enhance multi-valuated attribute management
http://tools.lsc-project.org/issues/show/78

Author: Cl?ment Oudot
Status: Assigned
Priority: Normal
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.1.0


Hello,

I have to manage groups, with multiple members. I need to apply some changes on 
each member value (in fact, find the corresponding DN in the target directory).

For a mono-valuated attribute, I can use the LSC provided method, like:
<pre>
lsc.syncoptions.taskname.member.force_value = ldap.attribute( 
ldap.list('ou=people' , "(sAMAccounName=" + srcLdap.attribute( 
srcBean.getAttributeValueById('uniqueMember'), 'uid' ) +")" ), 
'distinguishedName' )
</pre>

I would like to have a wrapper that can apply this for all source values.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.lsc-project.org/pipermail/lsc-dev/attachments/20090701/d013ea58/attachment.htm>

Reply via email to