Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic-tutorial.md -- name should not equal server_name #208

Closed
rebeccc opened this issue Jun 1, 2020 · 2 comments
Closed

basic-tutorial.md -- name should not equal server_name #208

rebeccc opened this issue Jun 1, 2020 · 2 comments

Comments

@rebeccc
Copy link
Contributor

rebeccc commented Jun 1, 2020

What went wrong?

On line 85 of basic-tutorial.md, the call to Credentials fails because it is server_name and not server_hostbased_name

How do we reproduce?

Based on the tutorial, you set server_name and server_hostbased_name as follows:

server_hostbased_name = gssapi.Name('HTTP@' + FQDN, name_type=gssapi.NameType.hostbased_service)
server_name = gssapi.Name('HTTP/sross@')

and then make a call to Credentials using server_name rather than server_hostbased_name, which causes it to fail.

server_creds = gssapi.Credentials(usage='accept', name=server_name)
@rebeccc
Copy link
Contributor Author

rebeccc commented Jun 2, 2020

There are a couple of other places in the tutorial that uses server_name instead of server_hostbased_name. I've made a list of the ones I realized wouldn't work.

this one is just in a sequence of checks and doesn't fail, but will show up false.
line 103:

server_creds.name == server_name

line 128:

client_ctx = gssapi.SecurityContext(name=server_name, usage='initiate')

@frozencemetery
Copy link
Member

Fixed by #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants