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

Re: ldap_str2dn etc.

At 08:18 AM 2001-10-08, Pierangelo Masarati wrote:
>>         dn2str(str2dn(cn="foo,bar")) returns cn=foo\,bar
>All the points seem to be clarified enough; here I mean:
>from rfc 1779 it seems that "\," should be interpreted
>as a single comma despite of the quotes:
>        dn2str(str2dn(cn="foo\,bar")) returns cn=foo\,bar


>while an interpretation that seems reasonable to me is that 
>quotes should deactivate backslashes (except when escaping 

The wrapping quotes do not deactivate backslashes, but
make certain backslashes optional.

>so that "\," results in a backslash and a comma:
>        dn2str(str2dn(cn="foo\,bar")) returns cn=foo\\\,bar

That would be incorrect in my opinion.