Skip to content

Commit

Permalink
Update tutorial to make server_name equal FQDN
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccc committed Jun 4, 2020
1 parent 033fae8 commit 4982120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/basic-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ Suppose we wanted to refer to an HTTP server on the current host.
We could refer to it as a *host-based service*, or in the default
mechanism form (in this case, for krb5):

>>> server_hostbased_name = gssapi.Name('HTTP@' + FQDN, name_type=gssapi.NameType.hostbased_service)
>>> server_hostbased_name = gssapi.Name(f"HTTP@{FQDN}", name_type=gssapi.NameType.hostbased_service)
>>> server_hostbased_name
Name(b'HTTP@sross', <OID 1.2.840.113554.1.2.1.4>)
>>> server_name = gssapi.Name('HTTP/sross@')
Name(b'HTTP@seton.mivehind.net', <OID 1.2.840.113554.1.2.1.4>)
>>> server_name = gssapi.Name(f"HTTP/{FQDN}@")
>>> server_name
Name(b'HTTP/sross@', None)
Name(b'HTTP/seton.mivehind.net@', None)
>>>

These are both effectively the same, but if we *canonicalize* both
Expand Down

0 comments on commit 4982120

Please sign in to comment.