Skip to content

Commit 17d3201

Browse files
author
Jerry Cheung
committed
return partial results when exceeding search time limit
1 parent 4358f9c commit 17d3201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/ldap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ def search(args = {})
684684
when ResultStrings.key("Success")
685685
# everything good
686686
result_set
687-
when ResultStrings.key("Size Limit Exceeded")
688-
# LDAP: Size limit exceeded
687+
when ResultStrings.key("Size Limit Exceeded"), ResultStrings.key("Time Limit Exceeded")
688+
# LDAP: Size/Time limit exceeded
689689
# This happens when we use size option and results are truncated
690690
# Still we need to return user results
691691
result_set

0 commit comments

Comments
 (0)