2015-01-30 10:24 GMT+01:00 <[email protected]>:
> Sure Clement. I have tried ldap search on AD and it returns below error while
> looking for member's DN.
>
> Jan 30 14:52:21 - ERROR - Error while adding entry
> cn=demogrp2,dc=testrjil,dc=net in directory
> :javax.naming.OperationNotSupportedException: [LDAP: error code 53 -
> 0000054F: SvcErr: DSID-031A120C, problem 5003 (WILL_NOT_PERFORM), data 0
> ]; remaining name 'cn=demogrp2'
> Jan 30 14:52:21 - ERROR - Error while synchronizing ID
> cn=demogrp2,dc=testrjil,dc=net: java.lang.Exception: Technical problem while
> applying modifications to the destination
> # Fri Jan 30 14:52:21 IST 2015
> dn: cn=demogrp2,dc=testrjil,dc=net
> changetype: add
> member: sun.org.mozilla.javascript.NativeArray@46fd007c
> cn: demogrp2
> sAMAccountName: demotestgrp2
> objectClass: group
> objectClass: top
>
>
The error is not while looking for member's DN but when creating the
entry. Indeed the member value is misinterpreted by LSC.
> the code which I have tried is
>
> var destDn = ldap.search("CN=Users", "(sAMAccountName=" + uid + ")");
>
> uid I have passed is having correct value. Any idea?
>
Seems good.
The problem is the nature of the array that returns all members. Try
maybe to force the use of a java Array, like :
var resTab =
java.lang.reflect.Array.newInstance(java.lang.String,
memberIdValues.length);
for (var j=0; j< memberIdValues.length; j++) {
resTab[j] = memberIdValues[j];
}
resTab
Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users