forked from External/greenlight
Added ability to map attributes for LDAP (#1779)
This commit is contained in:
@ -146,7 +146,7 @@ class SessionsController < ApplicationController
|
||||
|
||||
return redirect_to(ldap_signin_path, alert: I18n.t("invalid_credentials")) unless result
|
||||
|
||||
@auth = parse_auth(result.first, ENV['LDAP_ROLE_FIELD'])
|
||||
@auth = parse_auth(result.first, ENV['LDAP_ROLE_FIELD'], ENV['LDAP_ATTRIBUTE_MAPPING'])
|
||||
|
||||
begin
|
||||
process_signin
|
||||
|
Reference in New Issue
Block a user