[libsoup] ntlm: fix ntlmv2 authentication
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] ntlm: fix ntlmv2 authentication
- Date: Mon, 8 Jul 2019 08:20:27 +0000 (UTC)
commit c51f9f6344d885d211f21ea91f9122c8e68f79e5
Author: Thibaut Robert <thibaut robert worldline com>
Date: Sun Jul 7 20:38:35 2019 +0200
ntlm: fix ntlmv2 authentication
This patch add the NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY bit in the flags
of the NTLM type 3 response when using NTLMv2. This seems to be required for
some servers.
libsoup/soup-auth-ntlm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index 7c6a4b0e..1663669c 100644
--- a/libsoup/soup-auth-ntlm.c
+++ b/libsoup/soup-auth-ntlm.c
@@ -960,7 +960,7 @@ soup_ntlm_response (const char *nonce,
memset (&resp, 0, sizeof (resp));
memcpy (resp.header, NTLM_RESPONSE_HEADER, sizeof (resp.header));
resp.flags = GUINT32_TO_LE (NTLM_RESPONSE_FLAGS);
- if (ntlmv2_session && !negotiate_target)
+ if (ntlmv2_session)
resp.flags |= GUINT32_TO_LE (NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY);
if (negotiate_target)
resp.flags |= GUINT32_TO_LE (NTLM_FLAGS_REQUEST_TARGET);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]