On 04/06/2019 15:37, Jehan Procaccia wrote:
> Hello,
> 
> I need to move objects from on ldap directory with a rDN composed of a cn=xxx 
> to a destination directory where rDN will be supannCodeEntite=yyy
> 
> can I have a source pivotAttributes based on "cn" and a destination 
> pivotAttributes based on supannCodeEntite ?
> 
> and because xxx will be replaced with a corresponding table (bijective array) 
> to yyy , what would be the mainIdentifier ? is something like this relevant ?:
> 
> <mainIdentifier>
> 
> <![CDATA[js: var src_dn= srcBean.getMainIdentifier(); var dst_dn = 
> dstBean.getMainIdentifier();
> 
> // code to link src_dn to dst_dn bijection .... 
> 
> function replaceAll(srcValue, dstValue, rDN)
> {
> return rDN.split(srcValue).join(dstValue);
> 
> dst_dn = replaceAll(src_dn, dst_dn, src_dn)
> 
> dst_dn;
> 
> </mainIdentifier>
> 
> thanks for your help .
> 

Hi,

You can have different attributes for pivot as long as their values are the 
same, so LSC can match entries in order to perform add, update or delete 
operations.

I don't understand what you are trying to do exactly : Do you want to transform 
objects with DN cn=xxx,dc=src,dc=local in SRC to objects with DN 
supannCodeEntite=xxx,dc=dst,dc=local, where "xxx" is the same value in both 
directories ? Then you can build your main identifier like this :

<mainIdentifier>'supannCodeEntite='+srcBean.getDatasetFirstValueById('cn')+',ou=structures,dc=local'<mainIdentifier>

If "xxx" is not the same value, you'll need to figure its value from your 
source entry. If you need help, you'll need to provide more details on how LSC 
can deduce your supannCodeEntite from the information within your src entry.

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

Reply via email to