thx a lot for your answers i just found a right solution.
-----------------------------------------
PROBLEM :
-----------------------------------------
Hi,
I use lsc 1.20
My synchro work like a charm with mono value attribute but now
I have an openldap with multi-value attribute like this :
cn:riri
sn:fifi
attribute1 : toto
attribute1: tata
attribute1:titi
….
And I want an active directory result like this :
cn:riri
sn:fifi
attributead: toto,tata,titi…
How did you that ?
getAttributevaluebyid (id), take juste the forst attribute
getAttributevaluesbyid (id) make an error (my active directory attribute
doesn't work with multi-value)
Thx a lot
--------------------------------------------------------
SOLUTION
-------------------------------------------------------
just use toArray() et join() method like this :
lsc.syncoptions.AD.attributead.Force_value =
srcBean.getAttributeValuesById("attribute1").toArray().join(); # join()
use "," defaut limiter but you can use custom delimiter with join(":")
for example.
and voila !
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users