Skip to content

Commit 4982120

Browse files
committed
Update tutorial to make server_name equal FQDN
1 parent 033fae8 commit 4982120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/basic-tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ Suppose we wanted to refer to an HTTP server on the current host.
4343
We could refer to it as a *host-based service*, or in the default
4444
mechanism form (in this case, for krb5):
4545

46-
>>> server_hostbased_name = gssapi.Name('HTTP@' + FQDN, name_type=gssapi.NameType.hostbased_service)
46+
>>> server_hostbased_name = gssapi.Name(f"HTTP@{FQDN}", name_type=gssapi.NameType.hostbased_service)
4747
>>> server_hostbased_name
48-
Name(b'HTTP@sross', <OID 1.2.840.113554.1.2.1.4>)
49-
>>> server_name = gssapi.Name('HTTP/sross@')
48+
Name(b'HTTP@seton.mivehind.net', <OID 1.2.840.113554.1.2.1.4>)
49+
>>> server_name = gssapi.Name(f"HTTP/{FQDN}@")
5050
>>> server_name
51-
Name(b'HTTP/sross@', None)
51+
Name(b'HTTP/seton.mivehind.net@', None)
5252
>>>
5353

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

0 commit comments

Comments
 (0)