You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/client.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,7 @@ containing the following fields:
204
204
|attrsOnly |boolean on whether you want the server to only return the names of the attributes, and not their values. Borderline useless. Defaults to false.|
205
205
|sizeLimit |the maximum number of entries to return. Defaults to 0 (unlimited).|
206
206
|timeLimit |the maximum amount of time the server should take in responding, in seconds. Defaults to 10. Lots of servers will ignore this.|
207
+
|paging |enable and/or configure automatic result paging|
207
208
208
209
Responses from the `search` method are an `EventEmitter` where you will get a
209
210
notification for each `searchEntry` that comes back from the server. You will
@@ -277,6 +278,80 @@ The `not` character is represented as a `!`, the `or` as a single pipe `|`.
277
278
It gets a little bit complicated, but it's actually quite powerful, and lets you
278
279
find almost anything you're looking for.
279
280
281
+
## Paging
282
+
Many LDAP server enforce size limits upon the returned result set (commonly
283
+
1000). In order to retrieve results beyond this limit, a `PagedResultControl`
284
+
is passed between the client and server to iterate through the entire dataset.
285
+
While callers could choose to do this manually via the `controls` parameter to
286
+
`search()`, ldapjs has internal mechanisms to easily automate the process. The
287
+
most simple way to use the paging automation is to set the `paging` option to
0 commit comments