You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor contains a default value of None, instead of documented '.', but that is not that important. It imposes a local domain which means that HttpNegotiateAuth(username="foo",password="bar") fails in an Active Directory environment where the domain is simply implied to the one where the current machine is joined. You are always forced to supply domain:
with: r = requests.head(targetUrl, auth=HttpNegotiateAuth(username="...", password="...")):
etry_using_http_Negotiate_auth
error, auth = clientauth.authorize(sec_buffer)
File "C:\Program Files\Python38\lib\site-packages\win32\lib\sspi.py", line 131, in authorize
err, attr, exp=win32security.InitializeSecurityContext(
pywintypes.error: (-2146893048, 'InitializeSecurityContext', 'Das Token, das der Funktion übergeben wurde, ist ungültig.')
Remove implication of a local domain (local SAM account) which forced you to
*always* supply a domain although Kerberos can derive default one automatically.
This fixesbrandond#37
Here
requests-negotiate-sspi/requests_negotiate_sspi/requests_negotiate_sspi.py
Lines 35 to 36 in c7929ee
The constructor contains a default value of
None
, instead of documented'.'
, but that is not that important. It imposes a local domain which means thatHttpNegotiateAuth(username="foo",password="bar")
fails in an Active Directory environment where the domain is simply implied to the one where the current machine is joined. You are always forced to supplydomain
:with:
r = requests.head(targetUrl, auth=HttpNegotiateAuth(username="...", password="..."))
:where username can be:
sAMAccountName
Somewhat related case: https://bugs.launchpad.net/ubuntu/+bug/1970924
The text was updated successfully, but these errors were encountered: