InitializeSecurityContext and NTLM authentication
- From: "sijo" <spam@xxxxxxxx>
- Date: Wed, 20 Sep 2006 21:38:54 +0530
I posted the problem given below some days back. But, I
didn't get any replies or comments. I will try to make it more
clear this time.
I am creating an application which uses NTLM authentication.
As you know there are 3 messages in an NTLM session.
Let me call them Msg1, Msg2 and Msg3, where,
Msg1 : Client to Server.
Msg2 : Server to Client [contains random challenge]
Msg3 : Client to Server [uses password hash to encrypt this
challenge string and sends back to the server ]
I am making use of SSPI context management functions to
get this session working.
I have created Msg1 successfully using the following two
functions.
1) AcquireCredentialsHandle
2) InitializeSecurityContext
Then I sent the Msg1 to the server and I got reply from the
server [Msg2].
I am a bit confused here. How should I pass this Msg2
to the InitializeSecurityContext to create Msg3 ? Or should
I call AcquireCredentialsHandle again ?
The documentation of InitializeSecurityContext says that,
the parameter "pInput" must be NULL on the first call.
So how do I pass Msg2 to InitializeSecurityContext function ?
Any help would be appreciated.
regards
Sijo
----- Original Message -----
From: "sijo" <spam@xxxxxxxx>
Newsgroups: microsoft.public.platformsdk.security
Sent: Thursday, September 07, 2006 3:40 PM
Subject: InitializeSecurityContext and NTLM
Hello,
Can some of you point out the sequence of calling
InitializeSecurityContext to setup NTLM authentication.?
The following is the sequence I tried.
1) AcquireCredentialsHandle is called.
2) InitializeSecurityContext is called.
3) The output buffer [ntlm msg1] returned is sent to the server.
4) I got a response [ntlm msg2 ] from the server.Then, I called
InitializeSecurityContext again with this buffer as the
inputBuffer. [And passing the old context handle as the second
parameter]. But this time the function returned "Unknown error".
Is it the right sequence to setup NTLM authentication ?
Any comments would be appreciated.
regards
sijo
.
- Prev by Date: RE: Tcp Port 3367 Established
- Next by Date: ScardAccessStartedEvent does not signal in Vista services - service hardening?
- Previous by thread: CSP and how to use a public key from a certificate to cipher data
- Next by thread: ScardAccessStartedEvent does not signal in Vista services - service hardening?
- Index(es):
Relevant Pages
|