Issue #248 has been updated by Clément OUDOT.

Well, the bug is not only in the log. As DN is wrong, LSC detects a modrdn and 
try to rename the entry:
<pre>
clement@ader-xps:~$ Programmes/lsc-2.1-SNAPSHOT/bin/lsc -f 
configuration/lsc/linid/openldap2openldap/ -s alias -t1 
mai 13 12:44:07 - INFO  - Logging configuration successfully loaded from 
/home/clement/configuration/lsc/linid/openldap2openldap/logback.xml 
mai 13 12:44:07 - INFO  - LSC configuration successfully loaded from 
/home/clement/configuration/lsc/linid/openldap2openldap/
mai 13 12:44:07 - INFO  - Connecting to LDAP server 
ldap://localhost/dc=example,dc=com as cn=admin,dc=example,dc=com
mai 13 12:44:07 - INFO  - Starting sync for alias
mai 13 12:44:07 - WARN  - WARNING: updating the RDN of the entry will cancel 
other modifications! Relaunch synchronization to complete update.
mai 13 12:44:07 - ERROR - Error while synchronizing ID 
ldap://localhost:389/uid=coudot,ou=users,dc=example,dc=com,ou=zimbra,ou=applications,dc=example,dc=com:
 java.lang.RuntimeException: 
org.apache.directory.api.ldap.model.exception.LdapInvalidDnException: ERR_04196 
Unexpected character ':' at position 5. Excpected start of attributeType descr.
mai 13 12:44:07 - DEBUG - java.lang.RuntimeException: 
org.apache.directory.api.ldap.model.exception.LdapInvalidDnException: ERR_04196 
Unexpected character ':' at position 5. Excpected start of attributeType descr.
java.lang.RuntimeException: 
org.apache.directory.api.ldap.model.exception.LdapInvalidDnException: ERR_04196 
Unexpected character ':' at position 5. Excpected start of attributeType descr.
        at org.lsc.jndi.JndiServices.rewriteBase(JndiServices.java:652) 
~[lsc-core-2.1-SNAPSHOT.jar:na]
        at org.lsc.jndi.JndiServices.doApply(JndiServices.java:835) 
~[lsc-core-2.1-SNAPSHOT.jar:na]
        at org.lsc.jndi.JndiServices.apply(JndiServices.java:782) 
~[lsc-core-2.1-SNAPSHOT.jar:na]
        at 
org.lsc.jndi.SimpleJndiDstService.apply(SimpleJndiDstService.java:212) 
~[lsc-core-2.1-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:779) 
[lsc-core-2.1-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:691) 
[lsc-core-2.1-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_55]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_55]
        at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
Caused by: 
org.apache.directory.api.ldap.model.exception.LdapInvalidDnException: ERR_04196 
Unexpected character ':' at position 5. Excpected start of attributeType descr.
        at 
org.apache.directory.api.ldap.model.name.FastDnParser.matchAttributeTypeDescr(FastDnParser.java:387)
 ~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at 
org.apache.directory.api.ldap.model.name.FastDnParser.matchAttributeType(FastDnParser.java:269)
 ~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at 
org.apache.directory.api.ldap.model.name.FastDnParser.parseRdnInternal(FastDnParser.java:149)
 ~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at 
org.apache.directory.api.ldap.model.name.FastDnParser.parseDn(FastDnParser.java:90)
 ~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at 
org.apache.directory.api.ldap.model.name.Dn.parseInternal(Dn.java:1369) 
~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at org.apache.directory.api.ldap.model.name.Dn.<init>(Dn.java:285) 
~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at org.apache.directory.api.ldap.model.name.Dn.<init>(Dn.java:211) 
~[api-all-1.0.0-M20.jar:1.0.0-M20]
        at org.lsc.jndi.JndiServices.rewriteBase(JndiServices.java:640) 
~[lsc-core-2.1-SNAPSHOT.jar:na]
        ... 8 common frames omitted
# Tue May 13 12:44:07 CEST 2014
dn: 
ldap://localhost:389/uid=coudot,ou=users,dc=example,dc=com,ou=zimbra,ou=applications,dc=example,dc=com
changetype: modrdn
newrdn: uid=coudot
deleteoldrdn: 1
newsuperior: ou=zimbra,ou=applications,dc=example,dc=com

</pre>
----------------------------------------
Bug #248: dn error when using derefAlias = always
http://tools.lsc-project.org/issues/248

Author: Lanore Ronan
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
Category: Core
Target version: 2.1
Problem in version: 


it appears that when we use this config line:

<pre>
dst.java.naming.ldap.derefAliases = always
</pre>

in conjunction with

an ldap object same as:

<pre>
# r.lanore, zimbra, applications, dom.fr
dn: uid=r.lanore,ou=zimbra,ou=applications,dc=dom,dc=fr
objectClass: extensibleObject
objectClass: alias
objectClass: top
uid: r.lanore
aliasedObjectName: uid=rlanore,ou=utilisateurs,dc=dom,dc=fr
</pre>

and this config line:

<pre>
lsc.tasks.account.dn = ""
</pre>

produce this log:
<pre>
Jun 24 18:39:42 - DEBUG - In entry 
"ldap://localhost:389/uid=rlanore,ou=utilisateurs,dc=cam,dc=fr,ou=zimbra,ou=applications";
</pre>

the result should be
<pre>
Jun 24 18:39:42 - DEBUG - In entry "uid=rlanore,ou=utilisateurs,dc=cam,dc=fr"
</pre>

no?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

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

Reply via email to