intridea/omniauth-ldap — Issue #2: Handling of extra information within auth_hash raises exception for NET::LDAP instance
Author: ivanjovanovic
Created: 2011-11-16 11:36:11+00:00
State: open

In omniauth-ldap/lib/omniauth/strategies/ldap.rb on line 60 extra information for auth_hash is provided.

In my case, and I would guess in general, it doesn't work since the @ldap_user_info is an instance of the Net::LDAP::Entry and doesn't fit in omniauth expectations from the return value.

I fixed it by simply wrapping it in a hash. Providing the pull request together with the issue.