Paged LDAP queries on the customer side

With Active Directory the largest page size is 1000. If we have more customer users in AD, only the first page is taken to OTRS.
The proposed solution is to page the LDAP queries.