mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
Windows treats Kerberos strings as UTF‐8, but by default, pyasn1 encodes strings as ISO-8859-1. (There is a UTF8String type that gets encoded as UTF‐8, but it has a different ASN.1 encoding from GeneralString, and so can’t be used). asn1ate provides no way to override the encoding. Except… It turns out we can force UTF‐8 encoding by cunningly overriding KerberosString.__getattribute__(). Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>