Hi,
I am using JNDI to query Active Directory via LDAP.
My search starts at the top of the tree and searches user objects based on say surname and first name. The directory that I am query can have thousands of records so queries need to be efficient.
Is there a way of finding out how many results would be returned without the app actually doing the complete query and returning loads of user data. E.g. if the search would bring back more than 500 records then I ask the user to refine their search.
Thanks
Tom
I am using JNDI to query Active Directory via LDAP.
My search starts at the top of the tree and searches user objects based on say surname and first name. The directory that I am query can have thousands of records so queries need to be efficient.
Is there a way of finding out how many results would be returned without the app actually doing the complete query and returning loads of user data. E.g. if the search would bring back more than 500 records then I ask the user to refine their search.
Thanks
Tom