On 25/04/2019 14:51, Uwe Faber wrote:
> 
> Hi,
> 
> I had the following Problem, i want OpenLdap sync to AD, i testet it on 
> a Debian 7 Server, it works.
> 
> Then i build up an new Server with Debian 8, installed LSC from DEB 
> Package and then i copied the lsc File to the new Server, it works,
> but the Group sync did not work, the Group will be generated on the AD 
> but no members will be synced ???
> 
> So i get no Error, the group will be build but with no members, the same 
> code on another server to the same AD it works without any problems ?
> 
> Have someone any Idea ?
> 
> 
> Regards
> 
> Uwe
> 
> 
> Here is the pice of code:
> ---------------------------------------------------------
>                  <dataset>
>                      <name>member</name>
>                      <policy>FORCE</policy>
>                      <forceValues>
>                      <string><![CDATA[js:
>                      var membersSrcDn 
> =srcBean.getAttributeValuesById("memberUid").toArray();
>                      var memberUidValues = [];
>                      for  (var i=0; i<membersSrcDn.length; i++)
>                      {
>                          var membersSrcDnString = "uid=" + 
> membersSrcDn[i]+",ou=people,dc=zkm,dc=de";
>                          var agriCN = "";
>                          try {
>                              agriCN = 
> srcLdap.attribute(membersSrcDnString,"cn").get(0);
>                              } catch (e) {
>                                continue;
>                              }
>                          var destMembersDn 
> ="CN="+agriCN+",cn=users,dc=zkmdom,dc=zkm,dc=de";
> 
> 
>                          memberUidValues.push(destMembersDn);
>                      }
>                      memberUidValues
>                      ]]>
>                      </string>
>                      </forceValues>
>                  </dataset>
> 
> -------------------------------

Hi,

What is the output of java -version on both server? Are you using the same 
Openldap server as source ?

The code seems fine, you can add java.lang.System.out.println("some debug 
message") in your javascript, to make sure memberUid attribute are read, and 
user's cn resolved. Messages will show up in logs.

Regards
-- 
Soisik Froger | Software Architect

[email protected]

Worteks | https://www.worteks.com
_______________________________________________________________
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