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

Status changed from Assigned to Closed
Target version deleted (2.0.1)
% Done changed from 0 to 100

So I close this issue, as you have now a working configuration.
----------------------------------------
Bug #521: Entries only being added, not updated on RDN change
http://tools.lsc-project.org/issues/521

Author: Joel Foote
Status: Closed
Priority: Normal
Assigned to: Clément OUDOT
Category: Core
Target version: 
Problem in version: 2.0


Attempting to take a source object, change it's name, and synchronize that into 
a destination directory. Everything appears to go as planned but the operation 
will only add, it does not update existing objects.   

LSC 2.0
Source directory looks like:
cn=role.ldap.groupname,ou=LDAP,ou=Roles,ou=Groups,dc=itlab,dc=example,dc=com

Destination directory looks like:
cn=groupname,ou=group,dc=example,dc=com

I have attached my full lsc.xml, but here is where I am doing the modification:

  <mainIdentifier>var sname = srcBean.getDatasetFirstValueById("cn"); var 
tmpname = sname.replaceAll("role.ldap.", ""); "cn=" + tmpname + 
",ou=group,dc=example,dc=com"</mainIdentifier>

The logs appear to show everything being processed right, up until the add 
completes.

Is the task evaluating if this should be a create or update before the 
modification takes place?

Here's an example of the log output I see:

Aug 21 20:29:15 - DEBUG - Loading XML configuration from: 
/usr/src/lsc-2.0/etc/lsc.xml
Aug 21 20:29:15 - INFO  - Reflections took 215 ms to scan 2 urls, producing 64 
keys and 249 values
Aug 21 20:29:15 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd
Aug 21 20:29:15 - DEBUG - Importing XML schema file: 
schemas/lsc-nis-plugin-1.0.xsd
Aug 21 20:29:15 - INFO  - Logging configuration successfully loaded from 
/usr/src/lsc-2.0/etc/logback.xml
Aug 21 20:29:15 - INFO  - LSC configuration successfully loaded from 
/usr/src/lsc-2.0/etc/
Aug 21 20:29:15 - INFO  - Connecting to LDAP server 
ldap://localhost/dc=example,dc=com as cn=manager,dc=example,dc=com
Aug 21 20:29:15 - INFO  - Connecting to LDAP server 
ldap://10.101.252.60/dc=itlab,dc=example,dc=com as jfoote@itlab
Aug 21 20:29:15 - INFO  - Starting async for adGroup
Aug 21 20:29:15 - DEBUG - Asynchronous synchronize adGroup
Aug 21 20:29:15 - DEBUG - Using pagedResults control for 1000 entries at a time
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
List of attributes considered for writing in destination: [cn, memberUid, 
gidNumber, objectClass]
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Attribute "cn" is in KEEP status
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Adding attribute "cn" with values [acme-dev]
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Attribute "memberUid" is in FORCE status
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Adding attribute "memberUid" with values [newtest]
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Attribute "gidNumber" is in FORCE status
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Adding attribute "gidNumber" with values [10001]
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Attribute "objectClass" is in FORCE status
Aug 21 20:29:15 - DEBUG - In object "cn=acme-dev,ou=group,dc=example,dc=com":  
Adding attribute "objectClass" with values [posixGroup, top]
Aug 21 20:29:15 - ERROR - Error while adding entry 
cn=acme-dev,ou=group,dc=example,dc=com in directory 
:javax.naming.NameAlreadyBoundException: [LDAP: error code 68 - Entry Already 
Exists]; remaining name 'cn=acme-dev,ou=group'



-- 
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