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

Re: [python-win32] ISensLogon COM Object

2008-01-09 Thread le dahut
I've seen several examples in C, Delphi and VB, but I still don't know how to call ISensLogon in python : win32com.client.Dispatch(ISens.Logon) doesn't work, I've tried many other things with no more success. Could you give me a short example on how to start with this ? Tim Roberts a écrit :

[python-win32] win32com Dispatch and userName

2008-01-09 Thread Matt Herbert (matherbe)
Hey all, Can anyone tell me what the userName argument is used for when calling win32com.client.Dispatch? Thanks -Matt ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] ISensLogon COM Object

2008-01-09 Thread Tim Roberts
le dahut wrote: I've seen several examples in C, Delphi and VB, but I still don't know how to call ISensLogon in python : win32com.client.Dispatch(ISens.Logon) doesn't work, I've tried many other things with no more success. You're still thinking about this backwards. You don't call

[python-win32] samefile() for win

2008-01-09 Thread Carl Karsten
Many of the methods on http://docs.python.org/lib/module-os.path.html don't work on win. like samefile() I found: 39 def samefile(path1, path2): 40 return getLongPathName(path1) == getLongPathName(path2) 41 42 def getLongPathName(path): 43 buf =