mongodb / winkerberos

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

Implement authGSSClientResponseConf #13

Closed behackett closed 7 years ago

behackett commented 7 years ago

Both Apple's original kerberos project and the popular PyKerberos fork both implement this function. It would be trivial to implement in WinKerberos. DecryptMessage provides this information in the pfQOP out parameter. The implementation can be, essentially:

return pfQOP != SECQOP_WRAP_NO_ENCRYPT

References: https://github.com/apple/ccs-pykerberos/blob/PyKerberos-1.2.5/pysrc/kerberos.py#L222 https://github.com/02strich/pykerberos/blob/v1.1.9/pysrc/kerberos.py#L148 https://msdn.microsoft.com/en-us/library/windows/desktop/aa375215(v=vs.85).aspx