[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: DNs (Was: namedref updates)

At 11:38 PM 2001-10-28, Pierangelo Masarati wrote:
>"Kurt D. Zeilenga" wrote:
>> But the presence of an escape does not necessarily
>> mean the value needs to be escaped.  That is, the
>> fact that a dnstr <CN=\5A> was escaped does not
>> imply that string representation of ava_value
>> (0x5A) needs to be escaped or cannot be represented
>> in the desired format.
>I agree; actually, when unescaping stuff like '\5A'
>I'm turning it into its byte representation, namely 'Z',
>so the string becomes printable. I think this is the 
>one of the aims of parsing; in fact (at least this is 
>what I infer from RFC's) a dn
>        cn=Kurt,dc=Open\4C\44\41\50,dc=org
>is equivalent to
>        cn=Kurt,dc=OpenLDAP,dc=org
>so they MUST have the same structural representation, 


>Starting from this assumption, I can decide at
>__parse__ time what formats in dn2str will be available.
>Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
>Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
>Politecnico di Milano                 | mailto:masarati@aero.polimi.it
>via La Masa 34, 20156 Milano, Italy   |