OSDN Git Service

Use the omniauth-ldap info object instead of the raw ldap info in extra.
authorSteve Prentice <prentice@cisco.com>
Fri, 17 Feb 2012 17:10:50 +0000 (09:10 -0800)
committerSteve Prentice <prentice@cisco.com>
Fri, 17 Feb 2012 17:10:50 +0000 (09:10 -0800)
commit2bb2dee057327c81978ed0aa99904bd7ff5e6105
treec7c648d4d0c0da36c6dce4a125a80e8ae02dd479
parent9a24ccdea1dd4dc82ac7f24c1fa1706a20949898
Use the omniauth-ldap info object instead of the raw ldap info in extra.

This helps with compatibility with more LDAP providers as the implementation
doesn't depend on the exact names of the LDAP fields. The LDAP strategy
helps maps the attributes to the fields in the info object and we use the
info object to get the email and name.

This makes the LDAP auth compatible with most OpenLDAP servers as well.
app/controllers/omniauth_callbacks_controller.rb
app/models/user.rb