Le 08/06/2018 à 12:43, Julien TEHERY a écrit :
>
>> That's why you need to adapt the javascript in the member dataset to get
>> the real user DN in destination tp put this value as member. See as
>> example :
>> https://lsc-project.org/documentation/tutorial/synchronizegroups#properties
>>
>>
> Hello,
>
> Indeed, I succeded in adapting the js part to import users from
> posixgroups/memberuid's (source LDAP) to groups (Samba4/AD groups)
> But some errors remains and i would like to know why.
> The destination groups ar partially fullfilled, but sometimes it
> fails, and even some (a few) groups remain empty.
>
> Here is the trace, when launching LSC:
>
>
> juin 08 12:14:30 - ERROR - Error while synchronizing ID {cn=[s2489]}:
> org.lsc.exception.LscServiceException:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> juin 08 12:14:30 - INFO  - # Updating object
> CN=MYGROUP,OU=Groups,DC=dstdomain,DC=lan for LDAPGROUPS2AD
> # Fri Jun 08 12:14:30 CEST 2018
> dn: CN=MYGROUP,OU=Groups,DC=dstdomain,DC=lan
> changetype: modify
> replace: member
> member: CN=User1 User1name,cn=users,dc=dstdomain,dc=lan
> member: CN=User2 User2name,cn=users,dc=dstdomain,dc=lan
>
>
> Here is my full config for the LDAP2GROUP task:
> Where i f firstly retrieve the memberUid attributes from the
> posixgroups, then foreach I try to perform a LDAP search to get the CN
> associated to the memberUid, and then create the user in destination
> groups.
>


The error is telling your read data in an array which is empty. You
can't call destDn[0] if you are not sure that destDn has values.

-- 
Clément Oudot | Identity Solutions Manager

[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