[cifs-protocol] character escaping in DN and canonicalName [120072224000698]

Obaid Farooqi obaidf at microsoft.com
Wed Jul 22 08:32:39 UTC 2020


Hi Douglas:
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.

Regards,
Obaid Farooqi
Escalatiion Engineer | Microsoft

-----Original Message-----
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

hi Dochelp,

According to RFC 4514 and articles like
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F5312.active-directory-characters-to-escape.aspx&data=02%7C01%7Cobaidf%40microsoft.com%7Cd3bf66ec461747d9234008d82de630da%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637309813980752216&sdata=53tNR%2FlOc%2BDNRRKFGBbal9DB2Dp5uDcKxfaJP3%2BNlJk%3D&reserved=0
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