Le 31/05/2018 à 15:32, Clément OUDOT a écrit
No, you can convert directly groups from LDAP to AD/Samba, you just need
to write the correct code to convert members. The link I gave to you was
an example that you need to adapt to your data.


Ok sorry, I misunderstood that point..
Now, I just replaced the js part (same attributes fetched as described before) in order to change the member value like this:


           <![CDATA[rjs:
                var membersSrcUid = srcBean.getDatasetValuesById("memberUid");
                var membersDstDn = new java.util.ArrayList();
                for  (var i=0; i<membersSrcUid.size(); i++) {
                        var memberSrcUid = membersSrcUid.get(i);
                        var dn = "uid=" + memberSrcUid + ",cn=users,dc=dstdomain,dc=lan";
                        membersDstDn.add(dn);
                }
                membersDstDn
           ]]>


And i guess I'm very close because now memberuid is correctly returned, but something's still missing:

mai 31 15:48:04 - ERROR - Error while modifying entry CN=Mygroup,OU=Groups,DC=dstdomain,DC=lan in directory :javax.naming.NameNotFoundException: [LDAP: error code 32 - 00002030: Unable to find GUID for DN uid=user1,cn=users,dc=dstdomain,dc=lan]; remaining name 'CN=Mygroup,OU=Groups'

mai 31 15:48:04 - ERROR - Error while synchronizing ID CN=Mygroup,OU=Groups,DC=dstdomain,DC=lan: java.lang.Exception: Technical problem while applying modifications to the destination
# Thu May 31 15:48:04 CEST 2018
dn: CN=Mygroup,OU=Groups,DC=dstdomain,DC=lan
changetype: modify
replace: member
member: uid=user1,cn=users,dc=dstdomain,dc=lan
member: uid=user2,cn=users,dc=dstdomain,dc=lan
member: uid=user3,cn=users,dc=dstdomain,dc=lan



_______________________________________________________________
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