directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Fisher <dfis...@vt.edu>
Subject Paged Results Control
Date Tue, 28 Jun 2011 16:58:42 GMT
Can anyone provide some sample code for using the paged results control?
This is basically what I'm doing now:

    PagedResultsImpl prc = new PagedResultsImpl();
    prc.setCritical(true);
    prc.setSize(5);

    SearchRequest request = new SearchRequestImpl();
    request.setScope(SearchScope.SUBTREE);
    request.setBase(new Dn("dc=vt,dc=edu"));
    request.setFilter("(uid=*)");
    request.addAllControls(new Control[] {prc, });

OpenLDAP is reporting:

conn=1014 op=1 SEARCH RESULT tag=101 err=2 nentries=0 text=paged results
control value is absent

Thanks.

--Daniel Fisher

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message