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

Get Multiple Params?? #224

Open
chevinbrown opened this issue Jun 2, 2016 · 0 comments
Open

Get Multiple Params?? #224

chevinbrown opened this issue Jun 2, 2016 · 0 comments

Comments

@chevinbrown
Copy link
Contributor

What if I want to get a bunch of stuff back from my LDAP query?

Currently, I have to do:

self.email = Devise::LDAP::Adapter.get_ldap_param(self.username,"mail").first.to_s
self.first_name = Devise::LDAP::Adapter.get_ldap_param(self.username,"givenName").first.to_s
self.last_name = Devise::LDAP::Adapter.get_ldap_param(self.username,"sn").first.to_s
........etc........

Maybe I'm missing something, but it seems we should be able to return an array? Please advise!

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

No branches or pull requests

1 participant