Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Lib/ldap/controls/openldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class SearchNoOpMixIn:
"""

def noop_search_st(self,base,scope=ldap.SCOPE_SUBTREE,filterstr='(objectClass=*)',timeout=-1):
msg_id = None
try:
msg_id = self.search_ext(
base,
Expand All @@ -66,9 +67,10 @@ def noop_search_st(self,base,scope=ldap.SCOPE_SUBTREE,filterstr='(objectClass=*)
ldap.TIMELIMIT_EXCEEDED,
ldap.SIZELIMIT_EXCEEDED,
ldap.ADMINLIMIT_EXCEEDED
) as e:
self.abandon(msg_id)
raise e
):
if msg_id is not None:
self.abandon(msg_id)
raise
else:
noop_srch_ctrl = [
c
Expand Down