Added ability to map attributes for LDAP (#1779)

This commit is contained in:
Ahmad Farhat
2020-06-11 11:28:55 -04:00
committed by GitHub
parent 2c1a11e9a3
commit cf794db595
4 changed files with 6 additions and 4 deletions

View File

@ -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