Re: [python-win32] Query on - win32 impersonate user

2009-06-08 Thread Tim Golden
Vikas NV wrote: Hi, I have been trying to use the Impersonate user code that you have in the PyWin32.chm document. [... snip ...] obj = Impersonate('another_user', '01928348') obj.logon() print win32api.GetUserName() os.system('bash sleep.sh') obj.logoff() Unfortunately

[python-win32] Query on - win32 impersonate user

2009-06-08 Thread Vikas NV
Hi, I have been trying to use the Impersonate user code that you have in the PyWin32.chm document. The code that I am trying is : import win32security import win32con import win32api class Impersonate: def __init__(self,login,password): self.domain='BLAHBLAH' self.login=login