Hello everybody, i want to use active directory of my firm to user authentication.i am using active_directory module(Tim Golden's module - http://tgolden.sc.sabren.com/python/active_directory.html).
i am using windows vista with an administrative account,python 2.5 ,eclipse 3.2 and pydev plugin,and here is my problem : i am using the script : ----------------------------------------------------- import active_directory me = active_directory.find_user () print me ----------------------------------------------------- when i run this script from idle or command line everything goes fine , but when i want to run it from eclipse i get the followinr error : Traceback (most recent call last): File "H:\dev\eclipse\workspace\pyProject\src\pyPackage \adDeneme3.py", line 3, in <module> me = active_directory.find_user () File "E:\Python25\lib\active_directory.py", line 721, in find_user return root ().find_user (name) File "E:\Python25\lib\active_directory.py", line 539, in find_user for user in self.search ("sAMAccountName='%s' OR displayName='%s' OR cn='%s'" % (name, name, name), objectCategory='Person', objectClass='User'): File "E:\Python25\lib\active_directory.py", line 572, in search for result in query ("\n".join (sql_string), Page_size=50): File "E:\Python25\lib\active_directory.py", line 294, in query command = Dispatch ("ADODB.Command") File "E:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) pywintypes.com_error: (-2147024770, 'The specified module could not be found.', None, None) i think the problem may be related with windows vista and pydev... thanks for your help... ps : i also tried this with Windows XP,in that OS both the idle and eclipse woeks fine,i had no problem -- http://mail.python.org/mailman/listinfo/python-list