Skip to content
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

ability to select what attributes to return in Base find methods #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nextgenappsllc
Copy link

I am populating select fields in html forms with users from active directory. The problem is that all I need is the dn, username and/or cn while the search method was returning all the attributes including group names and thumbnail data etc.

I changed the find methods to allow for the passing of an array of attributes for this purpose. The only portion that I think this might adversely effect is caching possibly with cases where caching occurs for a query with selected attributes and then you run a query for all attributes and it returns a cache with those missing but I haven't looked to much at that code. Let me know if it does and I'll make the required changes to caching to accommodate that.

Otherwise, if you want to pull, I can add the changes to the documentation.

Thanks, and great work with this by the way!

@@ -1,4 +1,5 @@
require File.expand_path("../lib/active_directory/version", __FILE__)
require 'date'
Copy link

Choose a reason for hiding this comment

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

do you need to require this?

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