Skip to content

Pass through search options for GitHub::Ldap::Domain#user? #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 15, 2014

Conversation

jch
Copy link
Contributor

@jch jch commented Oct 15, 2014

This allows clients to specify additional search options when querying for a user. The test demonstrates how a client can limit the attributes returned.

cc @github/ldap @mtodd

@jch
Copy link
Contributor Author

jch commented Oct 15, 2014

Note that I plan to target master for the merge, but will do so once #50 merges.

options = search_options.merge \
filter: login_filter(@uid, login),
size: 1
search(options).first
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the separate options vs search_options hash needed? Seems like it'd be fine to combine them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided against modify the search_options in place in case the caller was using it as a common hash to build up other queries.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 legit.

@mtodd
Copy link
Member

mtodd commented Oct 15, 2014

Once my comment above is addressed (whatever you decide is cool), merge this into dev-v2. No reason to have to reopen this against master.

jch added a commit that referenced this pull request Oct 15, 2014
Pass through search options for GitHub::Ldap::Domain#user?
@jch jch merged commit 3f02551 into dev-v2 Oct 15, 2014
@jch jch deleted the limit-attributes branch October 15, 2014 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy