zakird / pyad

Python Active Directory Tools | *Not actively maintained*
http://zakird.github.io/pyad/
176 stars 72 forks source link

Unable to access AD using PyAD #128

Open Vigzm1995 opened 4 years ago

Vigzm1995 commented 4 years ago

I'm trying to import Pyad and get the active user directory when i'm shown this error:

Traceback (most recent call last): File ".\test.py", line 9, in q.execute_query( File "C:\Users\VIMOHA\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyad\adquery.py", line 78, in execute_query self.rs, self.rc = command.Execute() File "", line 2, in Execute File "C:\Users\VIMOHA\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\dynamic.py", line 287, in ApplyTypes result = self.oleobj.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args) pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Active Directory', 'There is no such object on the server.\r\n', None, 0, -2147217865), None)

Is there a workaround to solve this issue. Thanks.

connorhess commented 2 years ago

hello, 1 year and no responses, would also like to know as I have the same issue