Merge pull request #422 from steveprentice/master
This makes gitlabhq compatible with more LDAP servers (specifically OpenLDAP).
This commit is contained in:
commit
a44b85be9e
2 changed files with 6 additions and 6 deletions
|
@ -2,8 +2,8 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|||
|
||||
def ldap
|
||||
# We only find ourselves here if the authentication to LDAP was successful.
|
||||
omniauth = request.env["omniauth.auth"]["extra"]["raw_info"]
|
||||
@user = User.find_for_ldap_auth(omniauth)
|
||||
info = request.env["omniauth.auth"]["info"]
|
||||
@user = User.find_for_ldap_auth(info)
|
||||
if @user.persisted?
|
||||
@user.remember_me = true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue