-
Notifications
You must be signed in to change notification settings - Fork 446
size limit causing problems #737
Comments
Are you subscribed to the It would be a lot easier for us to debug if you could share your code setting up the ldapjs client or server. |
The express server is subscribed to the client error events (see server.txt) for my express server code. |
this seems like an issue with your server. Are there any errors on your server when It could also be that |
Ok so I added a console.log(entry.object) and all seems to be working until I run into a timeout exceeded error. I guess I need to set the timelimit in my search options. |
I modified my ldap.createClient to include timeout:5000 and connectTimeout:1000. Is there a way to retrieve just the first 100 results without throwing an error? |
according to #313 (comment) it could be an issue where your server is limiting the number of results because you aren't binding to a user. |
We have tests specifically around size limits -- node-ldapjs/test/client.test.js Lines 745 to 774 in 3430f05
If they are not sufficient, feel free to add some to our integration tests -- https://github.com/ldapjs/node-ldapjs/blob/3430f05d91bc152b18febe1f04665c8aea0faf11/test-integration/client/issues.test.js |
👋 On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request. Please see issue #839 for more information, including how to proceed if you feel this closure is in error. |
Hello,
I am attempting to perform an ldap search using the following options:
var opts {
scope: "sub",
filter:
(|(displayName=*${user}*)(mail=*${user}*))
,attributes: ["displayName", "mail", "title", "manager","orclcorpcostcenter","ou"],
sizeLimit: 1000
};
All works fine until the number of ldap responses exceeds the size limit.
For example if ${user} = "john" I don't know how many results that returns, but with size limit 1000, what I get back is an empty json object.
If I use any search criteria that returns less than the size limit set, I get all the data I want.
I am running an express.js server serving this data in a rest api.
The text was updated successfully, but these errors were encountered: