Skip to content

Commit ed2a2db

Browse files
committed
changing server_name to server_hostbased_name
1 parent 99ee548 commit ed2a2db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/basic-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ to acquire credentials as such:
8080

8181
>>> REALM.addprinc('HTTP/%s@%s' % (FQDN, REALM.realm))
8282
>>> 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)
8484
>>>
8585

8686
Note that for the krb5 mechanism, in order to acquire credentials with
@@ -100,7 +100,7 @@ credentials are usable:
100100

101101
>>> server_creds.usage
102102
'accept'
103-
>>> server_creds.name == server_name
103+
>>> server_creds.name == server_hostbased_name
104104
True
105105
>>> server_creds.lifetime is None
106106
True
@@ -125,7 +125,7 @@ When establishing a security context, the default credentials are
125125
used unless otherwise specified. This allows applications to use
126126
the user's already acquired credentials:
127127

128-
>>> client_ctx = gssapi.SecurityContext(name=server_name, usage='initiate')
128+
>>> client_ctx = gssapi.SecurityContext(name=server_hostbased_name, usage='initiate')
129129
>>> initial_client_token = client_ctx.step()
130130
>>> client_ctx.complete
131131
False

0 commit comments

Comments
 (0)