LDAP: objectcategory versus objectclass09-03-2008
When performing LDAP searches using scripts or LDAP capable tools, you are usually looking for user, group or computer objects. Default queries include the objectClass to distinguish between these types.
A better method however is using objectCategory since that attribute is indexed, whereas objectClass isn’t. Example searches: