LDAP interface pagination control

The server-side max page size is set to 1000. As soon as the server sends 1001 entries, it will return error 4 (LDAP_SIZELIMIT_EXCEEDED). To overcome this limit, an LDAP client must request entries in a page of <= 1000. Using the ldapsearch command-line from OpenDJ, the example below demonstrates a search with page size of 2. If you use other tools your syntax may vary.

[ldap-tools]$ ldapsearch -h example.<domain>.com -p 636 --useSSL -X --simplePageSize 2 -b "dc=example,dc=<domain>,dc=com" -D "uid=<login>,ou=users,dc=example,dc=<domain>,dc=com" -w -s SUB "objectclass=*" dn dn: dc=example,dc=<domain>,dc=com dn: ou=users,dc=example,dc=<domain>,dc=com
Press RETURN to continue dn: ou=groups,dc=example,dc=<domain>,dc=com dn: uid=example@example.com,ou=users,dc=example,dc=<domain>,dc=com Press RETURN to continue dn: uid=example2@dc=example,dc=<domain>,dc=com,ou=users,dc=example,dc=<domain>,dc=com dn: uid=example.com,ou=users,dc=example,dc=<domain>,dc=com Press