pythongssapi / requests-gssapi

An authentication handler for using GSSAPI with Python Requests. Drop-in replacement for old requests-kerberos.
Other
32 stars 21 forks source link

Explicit Principal code sample is wrong #33

Closed michael-o closed 3 years ago

michael-o commented 3 years ago

The sample says:

name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
creds = gssapi.Credentials(name=name, usage="initiate")

but the provided principal is not a hostbased service eligible for initiate.

frozencemetery commented 3 years ago

Hi, if you'd like this fixed sooner, feel free to submit a pull request :) Otherwise I'll get to it when I have a bit more time to look.

michael-o commented 3 years ago

Hi, if you'd like this fixed sooner, feel free to submit a pull request :) Otherwise I'll get to it when I have a bit more time to look.

I happily will, I just wanted to clarify first.