title: How to use ldap3 generator for pagination?
body: <p>I want to paginate the results of an ldap query so that I get 50 users per query for each page. The documentation here <a href="http://ldap3.readthedocs.io/searches.html?highlight=generator" rel="nofollow">http://ldap3.readthedocs.io/searches.html?highlight=generator</a> suggests that using a generator is the simplest way to do this, however it doesn't provide any detail as to how to use it to achieve pagination. When I iterate through the generator object, it prints out every user entry, even though I specified 'paged_size=5' in my search query. Can anyone explain to me what's going on here? Thanks!!</p>