Issue #572 has been updated by David Coutadeur.

After a rapid analysis, this code is relevant :

(in LscBean.java, line 283)
<pre>
        public final String getFullDistinguishedName() {
                String dn = getMainIdentifier();
                if (!dn.endsWith("," + Configuration.DN_REAL_ROOT)) {
                        return dn + "," + Configuration.DN_REAL_ROOT;
                } else {
                        return dn;
                }
        }
</pre>

There are 2 solutions :
 - if the dn always ends with the correct suffix, just return 
getMainIdentifier();
 - if the dn could not end with the suffix, find a way to load the correct 
suffix, searching in LscConfiguration (and not configuration, which is 
obsolete). If this solution is chosen, it would be necessary to search which 
bean it is : a source or a destination, and then to find in the appropriate 
LscConfiguration : sourceService or destinationService the appropriate dn.


----------------------------------------
Bug #572: getFullDistinguishedName() adds a bad suffix
http://tools.lsc-project.org/issues/572

Author: David Coutadeur
Status: New
Priority: Normal
Assigned to: 
Category: Core
Target version: 2.0.2
Problem in version: all versions since 2.0



Whereas getDistinguishedName() is deprecated, it is the only way to do the job 
instead of getFullDistinguishedName() for the moment.
The problem comes from :

getFullDistinguishedName() 

is replacing the correct dn from :
uid=jsmith,ou=People,dc=example,dc=com
to :
uid=jsmith,ou=People,dc=example,dc=com,dc=lsc-project,dc=org


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