LDAP search doesn't return all hits

S

Stephan Koser

Hi,

I have to query many entries from a LDAP-Server. It seems the server is
configured to return only a particular number of hits.
How can I get all hits?
Is there a way - comparable to database queries - to get the first 100 hits
and than the next...
Is there a code sample for that?

thanx
 
J

JScoobyCed

Stephan said:
Hi,

I have to query many entries from a LDAP-Server. It seems the server is
configured to return only a particular number of hits.
How can I get all hits?
Is there a way - comparable to database queries - to get the first 100 hits
and than the next...
Is there a code sample for that?

thanx

Depending on the LDAP server configuration, the maximum number of value
return is set to 1500 (Active Directory, iPlanet).
It is possible to add in the search query "range:<start>-<end>" (for ex:
"range:200-500") to get the selected range. Note however that the data
is not ordered, and the server determine what is in the selected range.
 
S

Stephan Koser

JScoobyCed said:
Depending on the LDAP server configuration, the maximum number of value
return is set to 1500 (Active Directory, iPlanet).
It is possible to add in the search query "range:<start>-<end>" (for ex:
"range:200-500") to get the selected range. Note however that the data is
not ordered, and the server determine what is in the selected range.

It seems, this attribute has to be supported by the ldap-server.
Another solution is shown here:

http://forums.java.sun.com/thread.jspa?messageID=3267962
 

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