views:

126

answers:

1

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?

+4  A: 
(&(objectClass=user)(objectCategory=person))

(via msdn)

ax
I find this one annoying as well. Ah, the joys of inheritance.
geoffc