https://bugs.winehq.org/show_bug.cgi?id=53757
Bug ID: 53757 Summary: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication headr received from the server was 'Negotiate,NTLM'. Product: Wine Version: 7.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@winehq.org Reporter: 34810581@qq.com Distribution: ---
wine7.18
install dotnet4.62 and vcrun2015 in prefix; The client accesses the IIS server through the wcf interface; enter the correct user name and password,but return the error: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication headr received from the server was 'Negotiate,NTLM'.
attach log
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #1 from 化神期水牛 34810581@qq.com --- Created attachment 73227 --> https://bugs.winehq.org/attachment.cgi?id=73227 +winsock,+bcrypt,+secur32,+crypt
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Can you attach a +secur32,+ntlm,+kerberos,+winhttp,+wininet trace?
https://bugs.winehq.org/show_bug.cgi?id=53757
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|crypt32 |-unknown
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #3 from 化神期水牛 34810581@qq.com --- Created attachment 73237 --> https://bugs.winehq.org/attachment.cgi?id=73237 +secur32,+ntlm,+kerberos,+winhttp,+wininet
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #4 from 化神期水牛 34810581@qq.com --- (In reply to Hans Leidekker from comment #2)
Can you attach a +secur32,+ntlm,+kerberos,+winhttp,+wininet trace?
ok, the log is attached
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #5 from Hans Leidekker hans@meelstraat.net --- (In reply to 化神期水牛 from comment #4)
(In reply to Hans Leidekker from comment #2)
Can you attach a +secur32,+ntlm,+kerberos,+winhttp,+wininet trace?
ok, the log is attached
0110:trace:ntlm:ntlm_SpInitLsaModeContext 0x9628d58, 0, L"HTTP/192.168.10.34", 0x20802, 0, 028601C8, 0050DED4, 028601DC, 0285D0B0, 0050E104, 0050DED3, 00000000 0110:trace:ntlm:ntlm_SpInitLsaModeContext returning 0x80090308
This is the first call to ntlm_SpInitLsaModeContext() and it returns SEC_E_INVALID_TOKEN because we expect the input buffer to be NULL when the context handle is NULL. This needs some tests to show how Windows behaves.
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #6 from 化神期水牛 34810581@qq.com --- (In reply to Hans Leidekker from comment #5)
(In reply to 化神期水牛 from comment #4)
(In reply to Hans Leidekker from comment #2)
Can you attach a +secur32,+ntlm,+kerberos,+winhttp,+wininet trace?
ok, the log is attached
0110:trace:ntlm:ntlm_SpInitLsaModeContext 0x9628d58, 0, L"HTTP/192.168.10.34", 0x20802, 0, 028601C8, 0050DED4, 028601DC, 0285D0B0, 0050E104, 0050DED3, 00000000 0110:trace:ntlm:ntlm_SpInitLsaModeContext returning 0x80090308
This is the first call to ntlm_SpInitLsaModeContext() and it returns SEC_E_INVALID_TOKEN because we expect the input buffer to be NULL when the context handle is NULL. This needs some tests to show how Windows behaves.
how do I do? Are there any tutorials?
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #7 from Hans Leidekker hans@meelstraat.net --- (In reply to 化神期水牛 from comment #6)
(In reply to Hans Leidekker from comment #5)
(In reply to 化神期水牛 from comment #4)
(In reply to Hans Leidekker from comment #2)
Can you attach a +secur32,+ntlm,+kerberos,+winhttp,+wininet trace?
ok, the log is attached
0110:trace:ntlm:ntlm_SpInitLsaModeContext 0x9628d58, 0, L"HTTP/192.168.10.34", 0x20802, 0, 028601C8, 0050DED4, 028601DC, 0285D0B0, 0050E104, 0050DED3, 00000000 0110:trace:ntlm:ntlm_SpInitLsaModeContext returning 0x80090308
This is the first call to ntlm_SpInitLsaModeContext() and it returns SEC_E_INVALID_TOKEN because we expect the input buffer to be NULL when the context handle is NULL. This needs some tests to show how Windows behaves.
It returns SEC_E_UNSUPPORTED_FUNCTION.
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #8 from Hans Leidekker hans@meelstraat.net --- Created attachment 73264 --> https://bugs.winehq.org/attachment.cgi?id=73264 patch
Can you try this patch?
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #9 from 化神期水牛 34810581@qq.com --- (In reply to Hans Leidekker from comment #8)
Created attachment 73264 [details] patch
Can you try this patch?
thank you very much ! but the problem was not resolved, i have attached log and the source code of my demo.
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #10 from 化神期水牛 34810581@qq.com --- Created attachment 73271 --> https://bugs.winehq.org/attachment.cgi?id=73271 WINEDEBUG=+secur32,+ntlm,+kerberos,+winhttp,+wininet
https://bugs.winehq.org/show_bug.cgi?id=53757
--- Comment #11 from 化神期水牛 34810581@qq.com --- Created attachment 73272 --> https://bugs.winehq.org/attachment.cgi?id=73272 my demo
https://bugs.winehq.org/show_bug.cgi?id=53757
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch, source, | |testcase