searchControls.getCountLimit(); is not returning all AD users !!!

S

shivaraj

Hi,

I am facing some issues with "SearchControls" in my LDAP program.
Basically i have more than 2000 users in AD. But from "ctx.search(dn,
filter, null)" I am getting only 950 entries. I tried replacing the
"null" to "getCountLimit() " i.e
----------------------------------------
SearchControls searchControls = new SearchControls();
searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
searchControls.getCountLimit();
return (ctx.search(dn, filter, searchControls));
----------------------------------------
whre ctx is the object of DirContext. But still no success. It still
retrieves only 950 users. How can I retrieve all 2000 AD users ?

And if I want to retrieve them in some junks i.e 1000 at a time, how
can i do that ?

Regards,
Shivaraj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top