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

Returning multivalued attributes (such as member)? #233

Closed
tstiemerling opened this issue Oct 8, 2014 · 3 comments
Closed

Returning multivalued attributes (such as member)? #233

tstiemerling opened this issue Oct 8, 2014 · 3 comments

Comments

@tstiemerling
Copy link

Noticed that when I query a group for the member attribute, the member attribute is returned as a string if there is only one member, and as an array if there is more than one member - meaning I have to handle this in my code. Wondering if this a common expected pattern? I am guessing that ldapjs doesnt know apriori whether it will get a single value or multiple values back.

@pfmooney
Copy link
Contributor

pfmooney commented Oct 8, 2014

Yes, that's is the expected behavior. It is inconvenient at times, but changing the API would likely incur heavy breakage for a large number of users.

@pfmooney
Copy link
Contributor

pfmooney commented Oct 8, 2014

Looking over the code again, there might be a pretty easy way to expose what you're looking for.
I'll work on it later this evening.

@pfmooney pfmooney self-assigned this Oct 8, 2014
@jsumners
Copy link
Member

👋

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.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants