pyad icon indicating copy to clipboard operation
pyad copied to clipboard

Unable to access AD using PyAD

Open Vigzm1995 opened this issue 4 years ago • 1 comments

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 "<COMObject ADODB.Command>", 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.

Vigzm1995 avatar Mar 19 '20 16:03 Vigzm1995

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

connorhess avatar Jul 27 '22 08:07 connorhess