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

Category set to Core


----------------------------------------
Bug #462: Cannot use different pivotAttrs between source and destination
http://tools.lsc-project.org/issues/462

Author: Clément OUDOT
Status: New
Priority: Normal
Assigned to: 
Category: Core
Target version: 2.1
Problem in version: trunk


I open a new issue, because the code of the trunk and 2.0 branch are quite 
different, and I have not the same behavior than in #35.

I tested a simple configuration, and get this kind of errors:
<pre>
mai 03 15:47:23 - ERROR - Error while renaming entry 
initials=agent.ac,ou=people,ou=XXX in directory 
:javax.naming.InvalidNameException: initials=agent.ac,ou=people: [LDAP: error 
code 34 - invalid new RDN]; remaining name 'initials=agent.ac,ou=people'
mai 03 15:47:23 - ERROR - Error while synchronizing ID 
initials=agent.ac,ou=people,ou=XXX: java.lang.Exception: Technical problem 
while applying modifications to the destination
dn: initials=agent.ac,ou=people,ou=XXX
changetype: modrdn
newrdn: initials=
deleteoldrdn: 1
newsuperior: ou=people,ou=XXX
</pre>

The task configuration:
<pre>
    <task>
      <name>agent</name>
      <bean>org.lsc.beans.SimpleBean</bean>
      <ldapSourceService>
        <name>openldap-source-service</name>
        <connection reference="ldap-master" />
        <baseDn>ou=people,ou=XXX</baseDn>
        <pivotAttributes>
          <string>uid</string>
        </pivotAttributes>
        ...
        <getAllFilter>(objectClass=Personne)</getAllFilter>
        
<getOneFilter><![CDATA[(&(objectClass=Personne)(uid={uid}))]]></getOneFilter>
        
<cleanFilter><![CDATA[(&(objectClass=Personne)(uid={initials}))]]></cleanFilter>
      </ldapSourceService>
      <ldapDestinationService>
        <name>sun-dst-service</name>
        <connection reference="ldap-sun-master" />
        <baseDn>ou=people,ou=XXX</baseDn>
        <pivotAttributes>
          <string>initials</string>
        </pivotAttributes>
        <getAllFilter>(objectClass=Personne)</getAllFilter>
        
<getOneFilter><![CDATA[(&(objectClass=Personne)(initials={uid}))]]></getOneFilter>
      </ldapDestinationService>
      <propertiesBasedSyncOptions>
        <mainIdentifier>js:"initials=" + 
srcBean.getDatasetFirstValueById("uid") + ",ou=people,ou=XXX"</mainIdentifier>
        <defaultDelimiter>;</defaultDelimiter>
        <defaultPolicy>FORCE</defaultPolicy>
        <dataset>
          <name>initials</name>
          <forceValues>
            <string>js:srcBean.getDatasetFirstValueById("uid");</string>
          </forceValues>
        </dataset>
      </propertiesBasedSyncOptions>
    </task>
</pre>


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