[python-win32] NTLM authentication using win32security and sspi

Mark Hammond skippy.hammond at gmail.com
Tue Feb 3 02:57:33 CET 2009


On 3/02/2009 10:51 AM, Aditya Jayraman wrote:
>
> Hi
>
> I am a newbie to pywin32 and windows programming.
>
> I am trying to achieve NTLM authentication using the win32security and
> sspi modules.
> Basically what I need to do is "verify the client's response to the
> server's challenge", like what a DC would do
> to complete the NTLM authentication between a client and a server.

I'm afraid it's not that simple - authentication is a multi-step process 
and needs to be done as the sspi samples do.  The 
win32\Demos\security\sspi\socket_server.py sample should put you on the 
right track though - it implements a server that performs NTLM 
authentication with clients.

Cheers,

Mark


More information about the python-win32 mailing list