Skip to content

Commit a8d33ea

Browse files
author
bajwa-adobe
committed
Disable paged LDAP results - clear msgid
Set msgid = None after getting results
1 parent 1cfb431 commit a8d33ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

user_sync/connector/directory_ldap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def iter_search_result(self, base_dn, scope, filter_string, attributes):
300300
msgid = connection.search(base_dn, scope,
301301
filterstr=filter_string, attrlist=attributes)
302302
result_type, response_data, _rmsgid = connection.result2(msgid)
303+
msgid = None
303304
if result_type in self.expected_result_types and (response_data is not None):
304305
for item in response_data:
305306
yield item

0 commit comments

Comments
 (0)