Hi Gabriel,

Try with :

umembers[i] = "cn=" + srcLdap.attribute(members[i], 'cn').get(0) +
",ou=usuarios,dc=receita,dc=intranet";

Regards,

Sebastien BAHLOUL

2015-07-27 18:22 GMT+02:00 Gabriel SERPRO <[email protected]>:

> Hey Folks,
>
> I'm trying to sync some AD groups members to my OpenLDAP using the
> following code:
>
> https://dpaste.de/Z41b
>
> In truth, I just want to change the suffix of the members that comes from
> the AD DIT from my simplified DIT on openLDAP which matches the users
> created in a previous task.
>
> If I strip the member dataset and let the lsc synchronize the member
> attribute automatically, all values works but with the 'wrong' DN (that
> uses the AD structure), not matching the users of my openLDAP database DN.
>
> Otherwise, if I try to use my code to populate the member attr, the lsc
> tries to use the following LDIF:
>
> dn: cn=SRVC_LDAP,ou=grupos,dc=receita,dc=intranet
> changetype: modify
> add: member
> member: [object Array]
> -
>
> And receives the 21 LDAP error (invalid syntax probably).
>
> Note that I'm using the groupOfMembers objectClass to hold the objects in
> the OpenLDAP instance.
>
> Any clues about how can I solve this problem?
>
> Att,
>
> Gabriel Cavalcante
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to