forked from External/greenlight
Allow to set a filter for LDAP authentication (#1306)
This commit is contained in:
@ -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?
|
||||
|
Reference in New Issue
Block a user