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

Re: Default Pretty Form of DNs



> At 12:31 AM 2001-12-23, Pierangelo Masarati wrote:
> >> I recommend the default pretty form be the strict RFC 2253 (bis)
> >> with minimal escaping.  That is, only characters which require
> >> escaping are escaped.  If clients desire further escaping before
> >> presenting the DN to the user, that's there responsibility.
> >
> >I modified the dn parsing/handling code to leave untouched the
> >UTF-8 stuff when PRETTY job is required; otherwise all non-ascii 
> >and the WILLESCAPE chars are escaped.
> 
>   dntest "cn=\20"
>   dntest "cn=\ "
> 
> both should return "cn=\20".  In fact, the \xx (hexpair) form
> should be used when ever and where ever LDAPv3 escaping is needed.

That's fine for me; however I'd prefer to use the escaped ascii
form in the "pretty" version because it is more readable and makes
the string as short as possible; I'll turn all the other escapes
in hex form and leave an option for the pretty form.

Ando.