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

Map userinfo fix #17

Merged
merged 2 commits into from
Dec 11, 2013
Merged

Map userinfo fix #17

merged 2 commits into from
Dec 11, 2013

Conversation

syndicut
Copy link
Contributor

@syndicut syndicut commented Jul 3, 2012

Net::LDAP::Entry (http://net-ldap.rubyforge.org/Net/LDAP/Entry.html) returns empty array if key does not
exists, so object[:some_symbol] always returned true, which could cause empty fields in userinfo if field had some other name, than the first in mapping array ('email' => 'mail', for example).

Net::LDAP::Entry returns empty array if key not
exists, so we should check for key with respond_to?
@raphendyr
Copy link

Why this is not merged?

@ntzrbtr
Copy link

ntzrbtr commented Aug 21, 2013

+1 on this, cost me a lot of time when setting up LDAP authentication for GitLab with an AD server.

@mbleigh
Copy link

mbleigh commented Aug 21, 2013

@retiolum I'll merge if I have a PR that will cleanly merge into master. I'm not really the active maintainer here, but happy to pull it in.

@holms
Copy link

holms commented Dec 10, 2013

why this not merged? gitlab software having problem with LDAP with legacy active directory authorization because this array doesn't rotate, can somebody accept this merge please?

@pyu10055 pyu10055 merged commit b524feb into omniauth:master Dec 11, 2013
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.

9 participants