mongodb / winkerberos

A native Kerberos client implementation for Python on Windows
Apache License 2.0
54 stars 15 forks source link

authGSSClientUsername can raise UnicodeDecodeError #7

Closed behackett closed 8 years ago

behackett commented 8 years ago

If the username includes non-ascii characters.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 22: invalid start byte

The problem is our use of SecPkgContext_Names and QueryContextAttributes rather that SecPkgContext_NamesW and QueryContextAttributesW.

behackett commented 8 years ago

Resolved by f25a7fb864a987d75a95acafc9794e0bc9e068b1