[cifs-protocol] character escaping in DN and canonicalName

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Wed Jul 22 02:22:17 UTC 2020


hi Dochelp,

According to RFC 4514 and articles like
https://social.technet.microsoft.com/wiki/contents/articles/5312.active-directory-characters-to-escape.aspx
the characters ' ', '"', '#', '+', ',', ';', '<', '=', '>', '\' are
escaped with a leading '\', while other characters can be escaped as hex
values like "\0a". For canonicalName, '/' must also be escaped, for
obvious reasons.

My question is: is there anywhere a list of which characters are
canonically escaped in the hex form?

That is, I suppose a carriage return is always escaped as "\0d", and an
'A' is never escaped as "\41". But I don't know whether, for example,
"ā" ('a' with macron) is included in a canonicalName or DN string as
"\C4\81" or as the plain UTF-8 "ā".

regards,
Douglas






More information about the cifs-protocol mailing list