JNDI-LDAP paging
问题 I managed to get pagination working like described here. The problem is I need to expose an API which would look like this: getUsers(pageSize, pageNumber) , which does not really go well with the way JNDI/LDAP does the paging(with a cookie you pass each time to the search method). The code looks like this: private NamingEnumeration ldapPagedSearch(String filter, int pageSize, int pageNumber){ InitialLdapContext ctx = getInitialContext(); //TODO: get the id also, need to spec it in UI //