Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total number of results using JNDI

Status
Not open for further replies.

djtom2000

Programmer
Feb 2, 2002
13
0
0
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top