I am trying to query almost all users in Active Directory. My regular users are in different departments, and I want to restore them. But my system users are stored in CN users, and I do not want to retrieve them.
This seems like another question , but their answer did not help me. I use the tooltip here , but it doesn't help either.
I am querying in Active Directory using JNDI. My request:
(&(objectClass=user)(!(cn:dn:=Users)))
This means all objects of the class userthat are not in the subtree Users. However, this query nonetheless returns something like this:
CN=__vmware__,CN=Users,DC=SIREDRM,DC=com
So why does this filter not work? How else can I make it work?
source
share