Skip to content

Commit a49e0bf

Browse files
author
blackhedd
committed
comments
1 parent b23ef85 commit a49e0bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/net/ldap.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,16 @@ def search args = {}
11621162
# page limit of 1000 records, but openLDAP newer than version 2.2.0 chokes
11631163
# on anything bigger than 126. You get a silent error that is easily visible
11641164
# by running slapd in debug mode. Go figure.
1165+
#
1166+
# Changed this around 06Sep06 to support a caller-specified search-size limit.
1167+
# Because we ALWAYS do paged searches, we have to work around the problem that
1168+
# it's not legal to specify a "normal" sizelimit (in the body of the search request)
1169+
# that is larger than the page size we're requesting. Unfortunately, I have the
1170+
# feeling that this will break with LDAP servers that don't support paged searches!!!
1171+
# (Because we pass zero as the sizelimit on search rounds when the remaining limit
1172+
# is larger than our max page size of 126. In these cases, I think the caller's
1173+
# search limit will be ignored!)
1174+
#
11651175
rfc2696_cookie = [126, ""]
11661176
result_code = 0
11671177
n_results = 0

0 commit comments

Comments
 (0)