On 04/03/2019 15:49, Szynaka, Edward wrote:
> I'm currently using LSC to synchronize 2 LDAP databases and having trouble
> with setting the field delimiter so LSC will not separate single attribute
> values from the source system to multiple attribute values on the
> destination. I'm currently only setting the defaultDelimeter; I'm not
> setting a delimiter on any values directly. I've tried adding a blank
> delimiter "<defaultDelimiter></defaultDelimiter>", but doing this LSC appears
> to use a default delimiter of ";". Is there any way to disable splitting
> fields on a delimiter completely?
>
> Below I've included the task config section for syncing the title attribute,
> an example source, and example destination post sync.
>
> Thanks,
> Ed
>
>
> Config section:
> <lsc>
> <tasks>
> <task>
> <.../>
> <propertiesBasedSyncOptions>
> <.../>
> <defaultDelimiter></defaultDelimiter>
> <defaultPolicy>FORCE</defaultPolicy>
> <conditions>
> <create>true</create>
> <update>true</update>
> <delete>true</delete>
> <changeId>false</changeId>
> </conditions>
> <dataset><name>title</name></dataset>
> </propertiesBasedSyncOptions>
> <.../>
> </task>
> </tasks>
> </lsc>
>
> Source LDIF:
> dn: uid=user1, ou=People,dc=buffalo,dc=edu
> title: Director;Professor
>
> Dest LDIF:
> dn: uid=user1,ou=People,dc=buffalo,dc=edu
> title: Director
> title: Professor
Hi Edward,
I understand you have a single title attribute in your src and want it to stay
that way in your destination. I've did a quick test with following dataset for
title, without changing defaultDelimiter, and it worked for me (single title
attribute in my destination entry, eg. "Director;Professor"):
<dataset>
<name>title</name>
<policy>FORCE</policy>
<forceValues>
<string>srcBean.getDatasetFirstValueById("title")</string>
</forceValues>
</dataset>
Can you give it a try?
Regards.
--
Soisik Froger | Software Architect
[email protected]
Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users