Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Unable to use attributes: 'member;range=0-1499' in ldapjs search #951

Closed
RajyashreeChat opened this issue Nov 1, 2023 · 3 comments
Closed

Comments

@RajyashreeChat
Copy link

On upgrading ldapjs from version '2.3.3' to '3.0.2', 2.3.3 was able to get all values of the member attribute when we changed range minimum and maximum but with version 3.0.2 the client.search method started failing with error: "Error: attribute must be a valid string".

The code snippet of the options sent in the ldapjs client.search method has been attached below.
let opts = {
filter: cn=${cnValue},
scope: 'sub',
attributes: [ 'member;range=0-1499'],
timeLimit: 30
}

Is there some way we can send the range in attributes with the new ldapjs version or an alternate way to get all the data of member attribute at once (There are >2000 members for one object)?

@jsumners
Copy link
Member

jsumners commented Nov 1, 2023

Duplicate of #895

@jsumners jsumners marked this as a duplicate of #895 Nov 1, 2023
@jsumners jsumners closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
@RajyashreeChat
Copy link
Author

All the members were earlier being received by sending attributes in the form "member;range=0-1499", "member;range=1500-max' and so on. But with version "3.0.2", it is giving error. Is there some alternate way of getting member data for items having member>1500?

The problem is not resolved in the, issue tagged as duplicate.

@jsumners
Copy link
Member

jsumners commented Nov 1, 2023

Regardless of resolution, this is a duplicate. It was closed due to lack of response. If you'd like to answer the question in that issue, feel free.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants