summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/ldap')
-rw-r--r--pykolab/auth/ldap/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 44019aa..67e9487 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2896,7 +2896,7 @@ class LDAP(Base):
page_size = 500
_results = []
- server_page_control = ldap.controls.libldap.SimplePagedResultsControl(size=page_size)
+ server_page_control = ldap.controls.libldap.SimplePagedResultsControl(size=page_size,cookie='')
_search = self.ldap.search_ext(
base_dn,
@@ -2937,7 +2937,7 @@ class LDAP(Base):
pctrls = [
c for c in _result_controls
- if c.controlType == LDAP_CONTROL_PAGED_RESULTS
+ if c.controlType == ldap.controls.libldap.SimplePagedResultsControl.controlType
]
if pctrls: