I'm having trouble setting up a paged search: apparently a response control is missing but I can't figure out how to create/use it...
here is my code:
SearchControls searchControls = new SearchControls();
CollectingNameClassPairCallbackHandler handler = new ContextMapperCallbackHandler(cm);
PagedResultsDirContextProcessor requestControl = new PagedResultsDirContextProcessor(3);
ldapTemplate.search(root, filter.encode(), searchControls, handler, requestControl);
The request works just fine without the paged results dir context processor, otherwise it returns me 0 results and this error in the logs:
"No matching response control found for paged results - looking for 'class javax.naming.ldap.PagedResultsResponseControl"
Could anybody help me?
Thanks a lot