Thanks for your anwser. I am getting "dec. 10 12:21:00 - DEBUG - javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=reader,dmdName=roles,cn=com1,dmdName=communities,dmdName=groups,dmdName=secureportal,dmdName=applications,dc=cap,dc=ad,dc=appli,dc=fr' javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]"
In <dataset>, when I write "ldap.search", on which LDAP does it search ? On SRC or DST ldap ? I need my search to be done on SRC ldap but it doesn't seem to find "cn=reader...[etc]" which makes me think it's searching on DST ldap. -----Message d'origine----- De : Raphaël Ouazana-Sustowski [mailto:[email protected]] Envoyé : mercredi 10 décembre 2014 10:03 À : FOUCHET, Alexandre Cc : lsc-userslsc-users Objet : Re: [lsc-users] Scripting in <dataset> Hi, Le 2014-12-10 09:52, FOUCHET, Alexandre a écrit : > Hi, > > I am facing troubles debugging my js for a <dataset> field. > > Using <dataset>, I want to update the attribute "title" of all > synchronized users on dest LDAP depending on whether this user is a > "uniqueMember" in that groupOfUniqueNames. If yes, I want to write > "contributor", else I want to write "reader". > > I tried what I wrote below, but I'm think I'm using this wrong. Could > anyone please guide me ? [...] > ldap.search("cn=contributor,dmdName=roles,cn=com1,dmdName=communities, > dmdName=groups,dmdName=secureportal,dmdName=applications,dc=cap,dc=ad, > dc=applis,dc=fr", "(uniqueMember=" + > srcBean.getDatasetFirstValueById("uid") + ")"); If think the issue is here: you are looking for uniqueMember=<uid> while you should look for uniqueMember=<DN>. Regards, Raphaël Ouazana. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

