Default the LDAP server label to LDAP
This commit is contained in:
parent
d1c3864778
commit
61d9d4e2eb
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,6 @@ Settings.ldap['enabled'] = false if Settings.ldap['enabled'].nil?
|
|||
if Settings.ldap['enabled'] || Rails.env.test?
|
||||
if Settings.ldap['host'].present?
|
||||
server = Settings.ldap.except('sync_time')
|
||||
server['label'] = 'LDAP'
|
||||
server['provider_name'] = 'ldap'
|
||||
Settings.ldap['servers'] = {
|
||||
'ldap' => server
|
||||
|
@ -69,6 +68,7 @@ if Settings.ldap['enabled'] || Rails.env.test?
|
|||
end
|
||||
|
||||
Settings.ldap['servers'].each do |key, server|
|
||||
server['label'] ||= 'LDAP'
|
||||
server['allow_username_or_email_login'] = false if server['allow_username_or_email_login'].nil?
|
||||
server['active_directory'] = true if server['active_directory'].nil?
|
||||
server['provider_name'] ||= "ldap#{key}".downcase
|
||||
|
|
Loading…
Reference in a new issue