> 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
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
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 =