I try to use the python pyad module to query my Active Directory.
from pyad import *
pyad.set_defaults(ldap_server="xxx", username="xxx", password="xxx")
q = pyad.adsearch.ADQuery()
That code will produce this error:
com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft OLE DB Service Components', 'The parameter is incorrect.', None, 0, -2147024809), None)
I have found one article describing a bug which I tested but it does not help: https://github.com/zakird/pyad/issues/49
Can anyone help understand what the problem is?