On 12.06.2009 15:27, Cl?ment OUDOT wrote: > Hello, > > I face a difficult problem: I have to synchronize OpenLDAP groups with > AD groups. > > The problem is that uniqueMember values in the source are exisiting DN > in the source but not in destination; So I have to do a loop on each > source value, for each uniqueMember DN do a LDAP search on destination > to find the corresponding DN, and then push the DN into the > destination member attributes. > > I tried to use javascript fonctions in lsc.properties, but it does not > work. Indeed, LSC interpret ';' as a value separaotr, but it is an > instruction end in javascript, so javascript coding is like hell in > lsc.properties. > > So, I think the only solution is to imlement a java method in > lsc-core, to transform source DN into destination DN. > > Can someone help me on this?
Hi, You can change the separator value by setting something like: lsc.syncoptions.TASKNAME.uniqueMember.delimiter = "%" This uses "%" instead of ";" as a separator. Or, as of my last commit (therefore in SVN only, until tonight's snapshot): lsc.syncoptions.TASKNAME.default.delimiter = "%" This should make sure you can use ";" as JavaScript's instruction end. Hope this helps, Jon -- -------------------------------------------------------------- Jonathan Clarke - jonathan at phillipoux.net -------------------------------------------------------------- Ldap Synchronization Connector (LSC) - http://lsc-project.org --------------------------------------------------------------

