Issue #101 has been updated by Jonathan Clarke. Status changed from Feedback to Closed
Cl?ment Oudot wrote: > Done here: > http://lsc-project.org/wiki/documentation/tutorials/synchronizegroups > > Can you have a look and correct my mistakes? Done! I corrected a few typos. Thank you very much for this documentation. We could probably explain the long JavaScript command a bit more, it's a bit confusing as is. We'll see when we have time :) ---------------------------------------- Feature #101: Document group synchronization example http://tools.lsc-project.org/issues/show/101 Author: Jonathan Clarke Status: Closed Priority: Normal Assigned to: Cl?ment Oudot Category: Documentation Target version: As reported by Cl?ment in issue #78, there is a simple syncoption configuration to synchronize groups. This would be nice in a mini-tutorial or a "Tips and tricks" section in the wiki. I'm adding this issue in order to close #78 and separate the documentation request. <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> -- 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/20090722/cd4d7317/attachment.htm>

