zakird / pyad

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

There is no such object on ther server #125

Open srinathgnath opened 4 years ago

srinathgnath commented 4 years ago

Hello,

Below code snippet is throwing error "There is no such object on ther server". Could you please help me to understand what's the issue.

q = pyad.adquery.ADQuery()

q.execute_query(
attributes = ["givenname"],
where_clause = "objectClass = 'user'",
base_dn = "OU=users,DC=****,DC=****,DC=com"
)