On 24 févr. 2012, at 09:20, Emmanuel Lécharny wrote:

> 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=*)

Oh ok, I see now.

Thanks,
Pierre-Arnaud

> 
> 
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
> 

Reply via email to