Le 04/11/2019 à 17:30, ℜ Christian Iuga a écrit :
> Hi,
>
>
> In my source Ldap, i have manager field as dn: cn=cn,ou=...
> But in Destination Ldap, we have manager field as dn: uid=uid,ou=...
>
> So i have thinking create this kind of dataset to populate my data :
>
> <dataset>
>   <name>manager</name>
>   <forceValues>
>     <string>
>       <![CDATA[
>         manager= srcBean.getDatasetFirstValueById("manager")
>         java.lang.System.out.println("Manager is  : " + manager);
>         // manager content the Full DN
>        // Need ldapsearch in the Source, to get the uid of the manager
>         manager_uid = ldap.attribute(manager, "uidNumber");
>         manager_dst = manager_uid + "ou=..,dc=";
>         manager_dst
>       ]]>
>     </string>
>   </forceValues>
> </dataset>
>
>
> If i understand correctly how Lsc is working ,
>   I need to get the uid of the manager via a other ldap connexion (as
> srcBean is on dn entry, not in the dn of the manager )
>
> Maybe i don't look carefully in the documentation , but i only found
> how to connect on the destination  ldap :
> var destUid = ldap.search("", "(objectClass=posixAccount)");
>
> in dataset, how to make a other ldap question in the source ?


You can use the same methods, just replace "ldap" by "srcLdap"


You have some examples in the tutorial to synchronize groups:
https://lsc-project.org/documentation/tutorial/synchronizegroups


-- 
Clément Oudot | Identity Solutions Manager

clement.ou...@worteks.com

Worteks | https://www.worteks.com

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
lsc-users@lists.lsc-project.org
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to