Hi Louis-Marie,

It seems that the code that throw this error is in the following line :

 try {
                            agriCN = srcLdap.attribute(membersSrcDn*[i]*,
"cn").get(0);
                            } catch (e) {
                            continue;
                                }

I would say that :
- you print the full string
- you are trying to read an attribute of a DN that contains a single
character

Regards,

Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/


2014-04-03 13:29 GMT+02:00 Plumel Louis-Marie <[email protected]>:

> Hello again,
>
> Here it is the error i have when i launch my sync:
>
>
>
>
> Caused by: java.lang.RuntimeException:
> org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException:
> ERR_04202 A value is missing on some RDN
>         at org.lsc.jndi.JndiServices.rewriteBase(JndiServices.java:650)
> ~[lsc-core-2.0.3.jar:na]
>         at org.lsc.jndi.JndiServices.doReadEntry(JndiServices.java:682)
> ~[lsc-core-2.0.3.jar:na]
>         at org.lsc.jndi.JndiServices.readEntry(JndiServices.java:657)
> ~[lsc-core-2.0.3.jar:na]
>         at
> org.lsc.jndi.ScriptableJndiServices._attr(ScriptableJndiServices.java:218)
> [lsc-core-2.0.3.jar:na]
>         ... 38 common frames omitted
> Caused by:
> org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException:
> ERR_04202 A value is missing on some RDN
>         at
> org.apache.directory.shared.ldap.model.name.Dn.<init>(Dn.java:276)
> ~[shared-all-1.0.0-M11.jar:1.0.0-M11]
>         at
> org.apache.directory.shared.ldap.model.name.Dn.<init>(Dn.java:208)
> ~[shared-all-1.0.0-M11.jar:1.0.0-M11]
>         at org.lsc.jndi.JndiServices.rewriteBase(JndiServices.java:638)
> ~[lsc-core-2.0.3.jar:na]
>         ... 41 common frames omitted
> membersSrcDn: uid=i,OU=users,DC=idiap,DC=ch
> Apr 03 11:46:13 - ERROR - Programmatic error
> java.lang.reflect.InvocationTargetException: null
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_27]
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> ~[na:1.6.0_27]
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.6.0_27]
>         at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_27]
>         at org.lsc.jndi.ScriptableObject.wrap(ScriptableObject.java:92)
> [lsc-core-2.0.3.jar:na]
>         at
> org.lsc.jndi.ScriptableObject.wrapString(ScriptableObject.java:155)
> [lsc-core-2.0.3.jar:na]
>         at
>
> org.lsc.jndi.ScriptableJndiServices.attribute(ScriptableJndiServices.java:211)
> [lsc-core-2.0.3.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_27]
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> ~[na:1.6.0_27]
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.6.0_27]
>         at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_27]
>         at
> sun.org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161) [na:1.7R2]
>         at
> sun.org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
> [na:1.7R2]
>         at
> sun.org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
> [na:1.7R2]
>
>
> Do you have an idea?
>
> I'm not at all a java specialist....
>
> Best,
>
> LM
> _______________________________________________________________
> 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