Skip to content

Commit 81ba52a

Browse files
michael-ofrozencemetery
authored andcommitted
Fix explicit principal code sample name type
Closes: #33 Signed-off-by: Michael Osipov <michael.osipov@siemens.com> [rharwood@redhat.com: commit message styling]
1 parent e56466f commit 81ba52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ applicable). However, an explicit credential can be in instead, if desired.
169169
>>> import gssapi
170170
>>> import requests
171171
>>> from requests_gssapi import HTTPSPNEGOAuth
172-
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
172+
>>> name = gssapi.Name("user@REALM", gssapi.NameType.user)
173173
>>> creds = gssapi.Credentials(name=name, usage="initiate")
174174
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
175175
>>> r = requests.get("http://example.org", auth=gssapi_auth)

0 commit comments

Comments
 (0)