mongodb / winkerberos

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

Add GSSError, inheriting from KrbError, and use it everywhere KrbError is currently used. #10

Closed behackett closed 8 years ago

behackett commented 8 years ago

See https://github.com/requests/requests-kerberos/pull/75

behackett commented 8 years ago

It looks like pykerberos uses KrbError for server side exceptions (along with GSSError in a few places), but uses GSSError for all client side exceptions. Since WinKerberos only implements the client side, we'll raise GSSError everywhere.

This change should be completely backward compatible since GSSError inherits from KrbError.