Re: [python-win32] Impersonation and Threads

2008-01-09 Thread Mark Hammond
Does windows OS have a standard dialog box I can call from python that queries the username/password, and returns a token? Not that I am aware of. It would be a bad idea anyway. A better idea would be to use the Windows SSPI functions so that the client and server can use NTLM or Kerberos to

[python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
Hey all, Is there a way to make impersonation follow threads? Given this simple example: import win32api import win32security import win32con from threading import Thread class Test(Thread): def run(self): print Username (in thread): , win32api.GetUserName() print Username (before

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Tim Roberts
Matt Herbert (matherbe) wrote: Is there a way to make impersonation follow threads? What operating system are you running? On XP SP2 and later, a new thread should inherit the impersonation token of the calling thread, unless the caller passes a specific security descriptor into

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
-Original Message- Tim Roberts wrote: Matt Herbert (matherbe) wrote: Is there a way to make impersonation follow threads? What operating system are you running? On XP SP2 and later, a new thread should inherit the impersonation token of the calling thread, unless the caller

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Stephen George
Hi, Not an answer to this thread but a related win32 authorization question? Does windows OS have a standard dialog box I can call from python that queries the username/password, and returns a token? I'd like not to have to worry about other peoples plain text passwords being in variables in