I'm using the search filter "(objectClass=user)" to find user objects, but of course it also returns computers because a computer also has user in its objectClass. How can I create a filter to only return objects users and not objects whos type inherits from user?
From your AD/LDAP Directory, in either: Directory Settings: Click directory -> Click Advanced Settings -> Search Filters | Additional User Filters. Import Users: Actions -> Import Users -> Click "Change Filters"
1. Search Filter is a basic LDAP Query for searching users based on mapping of username to a particular LDAP attribute. 2. The following are some commonly used Search Filters. You will need to use a search filter which uses the attributes specific to your LDAP environment.
(&(objectClass=user)(objectCategory=person))
(via msdn)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With