directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <>
Subject Re: ParentIdAndRdn compareTo() method issue
Date Fri, 24 Feb 2012 08:20:59 GMT
Le 2/24/12 8:30 AM, Pierre-Arnaud Marcelot a écrit :
> On 24 févr. 2012, at 08:06, Emmanuel Lécharny wrote:
>> Hi,
>> as im trying to fix an issue (searching for an entry which has a composite RDN),
I'm facing issues with the ParentIdAndRdn.compareTo() method.
>> This method is doing a String comparison between RDNs, which is obvioulsy not enough.
>> Let's consider the following example :
>> you have an entry with a DN cn=Doe+gn=John,ou=system.
>> If we do a search with gn=John+cn=Joe,ou=system, we won't be able to find the entry,
because the RDN won't be equal as String. We must compare the RDN using an internal AVA comparison.
> I guess the search would be something more like this: (&(gn=John)(cn=Doe)). Right?
No, it's really a search using the DN, with (ObjectClass=*)

Emmanuel Lécharny

View raw message