[cifs-protocol] character escaping in DN and canonicalName 
srenaden at microsoft.com
Mon Aug 3 15:18:59 UTC 2020
Hi Douglas, I’m researching this issue for you. Will provide you an update as soon as I have some details to share with you.
Microsoft Windows Open Specifications
From: Obaid Farooqi <obaidf at microsoft.com>
Sent: Wednesday, July 22, 2020 4:33 AM
To: Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
Cc: cifs-protocol at lists.samba.org; support <support at mail.support.microsoft.com>
Subject: RE: character escaping in DN and canonicalName 
Thanks for contacting Microsoft. I have created a case to track this issue. A member of the open specifications team will be in touch soon.
Escalatiion Engineer | Microsoft
From: Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
Sent: Tuesday, July 21, 2020 9:22 PM
To: Interoperability Documentation Help <dochelp at microsoft.com>
Cc: cifs-protocol at lists.samba.org
Subject: [EXTERNAL] character escaping in DN and canonicalName
According to RFC 4514 and articles like
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 "ā".
More information about the cifs-protocol