Hi,
indeed maybe I wasn't clear enough of what I want to do
in SRC ldap I have a branch for our school structures (organigram) ,
example :
dn: sn=dsi,sn=tsp,ou=Structures,dc=domain,dc=fr
sn: dsi
cn: Direction Systems Informations
In the DST ldap I want these structures to take supannCodeEntite as the
rDN (in place of sn) and on the fly change the values from last branch
name to full organigram tree with "/" as separator :
so for example the SRC dsi structure above will be renamed from its DN
tree to :
dn: supannCodeEntite=tsp/dsi,ou=Structures,dc=domain,dc=fr
supannCodeEntite: tsp/dsi
description: Direction Systems Informations
is this more clear ? can it be done in a LSC task ?
Thanks .
Le 04/06/2019 à 16:56, Soisik Froger a écrit :
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
_______________________________________________________________
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