Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit81ba52a

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

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_gssapiimport 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)

[8]ページ先頭

©2009-2025 Movatter.jp