Allow to set a filter for LDAP authentication (#1306)

This commit is contained in:
François Ménabé
2020-04-20 21:25:25 +02:00
committed by GitHub
parent 5aa1868f63
commit 8049ddbd01
2 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,7 @@ class SessionsController < ApplicationController
'start_tls'
end
ldap_config[:base] = ENV['LDAP_BASE']
ldap_config[:filter] = ENV['LDAP_FILTER']
ldap_config[:uid] = ENV['LDAP_UID']
if params[:session][:username].blank? || session_params[:password].blank?