Integer pagination cookies can cause issues with buggy client software
This is not really a bug in python-ldapserver but it might be worth fixing to avoid future pain...
We've been trying to get a piece of software running with uffd-ldapd and we were seeing weird LDAP sync issues. The software was only fetching the first 50 users (which was not immediately obvious as we don't have loads more than 50 users).
It turns out the software, which is written in PHP, was calling empty()
to check if a pagination cookie existed. And of course empty('0') == true
It might be worth making the pagination cookie "more opaque" by prepending a fixed string to defend against hitting these kind of time-consuming bugs in other software.