Disconnected Paging

Aug 12, 2012 at 4:58 PM

When accessing LDAP via a service layer my client is requesting page 1, max 15 records.  The next request might be for page 3, max 15 records.

In the current paging approach it looks like the NextPage cookie must be passed around and you can only go next/prev, not to a specific page.  Is that correct?

Aug 15, 2012 at 12:32 AM
Edited Aug 15, 2012 at 12:43 AM

That is correct.  Unfortunately paging in LDAP does not behave the same way as RDBMS.  It issues a cookie that has the necessary information to retrieve the next page.  You have to treat it like a black box operation (the RFC has more details).  I've had mixed results with paging backwards in AD so you'll want to test that behavior thoroughly.  Also, make sure your request is identical when you try to retrieve the next page.  The server may refuse the next page if it varies by anything other than page size.