From 9f838153e690ba8f8a44d6a874bc90a9b7b24b6e Mon Sep 17 00:00:00 2001 From: Adrian Carpenter Date: Wed, 27 Jun 2012 13:17:31 +0100 Subject: Removed flags from SSPI calls which prevented the NTLM authentication from working Change-Id: I87b085442ef301d9d92def0608a8baaa330522e6 Reviewed-by: Shane Kearns --- src/network/kernel/qauthenticator.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/network/kernel/qauthenticator.cpp') diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index b52e5c0da9..79d8a01217 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -1552,10 +1552,7 @@ static QByteArray qNtlmPhase1_SSPI(QAuthenticatorPrivate *ctx) secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle, NULL, L"" /* host */, - ISC_REQ_ALLOCATE_MEMORY | - ISC_REQ_CONFIDENTIALITY | - ISC_REQ_REPLAY_DETECT | - ISC_REQ_CONNECTION, + ISC_REQ_ALLOCATE_MEMORY, 0, SECURITY_NETWORK_DREP, NULL, 0, &ctx->ntlmWindowsHandles->ctxHandle, &desc, @@ -1617,10 +1614,7 @@ static QByteArray qNtlmPhase3_SSPI(QAuthenticatorPrivate *ctx, const QByteArray& SECURITY_STATUS secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle, &ctx->ntlmWindowsHandles->ctxHandle, L"" /* host */, - ISC_REQ_ALLOCATE_MEMORY | - ISC_REQ_CONFIDENTIALITY | - ISC_REQ_REPLAY_DETECT | - ISC_REQ_CONNECTION, + ISC_REQ_ALLOCATE_MEMORY, 0, SECURITY_NETWORK_DREP, &type_2_desc, 0, &ctx->ntlmWindowsHandles->ctxHandle, &type_3_desc, &attrs, &tsDummy); -- cgit v1.2.3