Re: CherryPy not playing nicely with win32com?

2005-11-14 Thread infidel
> Just an idea: because in CherryPy it is running in multithreading mode? > If you are using threads together with COM stuff, you will have to > add pythoncom.CoInitialize() and pythoncom.CoUninitialize() calls > in your code -- for each thread. That worked perfectly. Thanks a million! I used to

Re: CherryPy not playing nicely with win32com?

2005-11-10 Thread Irmen de Jong
infidel wrote: > I've been trying to get my CherryPy server to authenticate users > against our network. I've managed to cobble together a simple function > that uses our LDAP server to validate the username and password entered > by the user: [...] > moniker, i, bindCtx = pythoncom.MkParseD

CherryPy not playing nicely with win32com?

2005-11-10 Thread infidel
I've been trying to get my CherryPy server to authenticate users against our network. I've managed to cobble together a simple function that uses our LDAP server to validate the username and password entered by the user: # ldap.py from win32com.client import GetObject ADS_SECURE_AUTHENTICATION =