File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ Suppose we wanted to refer to an HTTP server on the current host.
43
43
We could refer to it as a * host-based service* , or in the default
44
44
mechanism form (in this case, for krb5):
45
45
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)
47
47
>>> 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}@" )
50
50
>>> server_name
51
- Name(b'HTTP/sross @', None)
51
+ Name(b'HTTP/seton.mivehind.net @', None)
52
52
>>>
53
53
54
54
These are both effectively the same, but if we * canonicalize* both
You can’t perform that action at this time.
0 commit comments