[python-win32] User transparent authentication with PDC

le dahut le.dahut at laposte.net
Tue Jan 20 17:35:02 CET 2009

Thank you, it looks like something good. But I was not precise enough in 
my first post, my PDC is a Linux/Samba system.

The client/server app I've written uses twisted-perspective broker. I 
don't trust the client side, so it should send to the server some 
informations it can check against the PDC.
I thought using some sort of NTLM like in squid. Your example deals with 
NTLM but reading "Lib/site-packages/win32/lib/sspi.py" I don't 
understand everything.

Can you enlight me ?

Mark Hammond wrote :
> On 20/01/2009 1:35 AM, le dahut wrote:
>> Hello,
>> I've written a python network app in which the server runs on a
>> Samba-PDC (NT Domain controler) and the client on the windows NTdomain
>> clients.
>> I want to authenticate the connexions to the python server using a
>> transparent method.
>> Is there a way to get a user NTdomain authentication token and give it
>> back to the python-server so that it can validate it against the PDC ?
> Look for the 'sspi' functions and demos, particularly the 
> win32\demos\security\sspi directory.
> Cheers,
> Mark

More information about the python-win32 mailing list