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 ?

Thanks in advance
_______________________________________________________________
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