Search code examples
pythonopenldappython-ldap

Python-LDAP Size limit exceeded


I see there is a way for me page the results in python and I found the following example code: https://bitbucket.org/jaraco/python-ldap/src/f208b6338a28/Demo/paged_search_ext_s.py

When I copy this code and try to modify it to what I need it to do when running the code I get a "TypeError: init() got an unexpected keyword argument 'cookie'"

I even reverted the code back to its default and get the same error. If someone could point me in the correct direction it would be much appreciated.

Thanks


Solution

  • Update your python-ldap module:

    pip install python-ldap --upgrade
    

    That class changed from this commit and mentioned:

    new class API in ldap.controls, not backwards-compatible!