Removed flags from SSPI calls which prevented the NTLM authentication from working
authorAdrian Carpenter <adrian@tsien.com>
Wed, 27 Jun 2012 12:17:31 +0000 (13:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jun 2012 00:23:57 +0000 (02:23 +0200)
Change-Id: I87b085442ef301d9d92def0608a8baaa330522e6
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/kernel/qauthenticator.cpp

index b52e5c0..79d8a01 100644 (file)
@@ -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);