directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <>
Subject Re: Values normalization and special characters
Date Tue, 07 Jun 2011 06:49:02 GMT
On 6/7/11 8:26 AM, Stefan Seelmann wrote:
> On Tue, Jun 7, 2011 at 8:09 AM, Emmanuel Lecharny<>  wrote:
>> Hi guys,
>> I'm a bit deeper into the DN/RDN problem. Now, the issue I have is that I
>> don't know how we should handle shuch case :
>> - an AT like "cn: \ user" having an escaped space at the beginning.
>> - an entry which DN is "cn=\ user,ou=system"
>> The check is done internally comparing the RDN ("cn=\ user") and the
>> Attribute value. Sadly, when we parse the DN, we remove the '\' (as it's not
>> significant), keeping the leading space. But then, we normalize the RDN
>> applying the CN normalizer to it, which removes the leading space.
> Here we should not compare the RDN and the attribute value. Instead
> the RDN's AVA value need to be used for comparison. The RDN AVA value
> should not contain the '\'.
It does not contain the '\', but the space is also stripped. So "cn: \ 
User" is internally transformed into an AVA containing "user" as a value 
(the \ and the space are removed after the value normalization...

Emmanuel L├ęcharny

View raw message