File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ to acquire credentials as such:
80
80
81
81
>>> REALM.addprinc('HTTP/%s@%s' % (FQDN, REALM.realm))
82
82
>>> REALM.extract_keytab('HTTP/%s@%s' % (FQDN, REALM.realm), REALM.keytab)
83
- >>> server_creds = gssapi.Credentials(usage='accept', name=server_name )
83
+ >>> server_creds = gssapi.Credentials(usage='accept', name=server_hostbased_name )
84
84
>>>
85
85
86
86
Note that for the krb5 mechanism, in order to acquire credentials with
@@ -100,7 +100,7 @@ credentials are usable:
100
100
101
101
>>> server_creds.usage
102
102
'accept'
103
- >>> server_creds.name == server_name
103
+ >>> server_creds.name == server_hostbased_name
104
104
True
105
105
>>> server_creds.lifetime is None
106
106
True
@@ -125,7 +125,7 @@ When establishing a security context, the default credentials are
125
125
used unless otherwise specified. This allows applications to use
126
126
the user's already acquired credentials:
127
127
128
- >>> client_ctx = gssapi.SecurityContext(name=server_name , usage='initiate')
128
+ >>> client_ctx = gssapi.SecurityContext(name=server_hostbased_name , usage='initiate')
129
129
>>> initial_client_token = client_ctx.step()
130
130
>>> client_ctx.complete
131
131
False
You can’t perform that action at this time.
0 commit comments