Update application.rb

uppercase names config
This commit is contained in:
artemfsight 2020-10-09 13:47:31 +05:00 committed by GitHub
parent 49a03915a7
commit e4bd4e46be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ class Application
next next
end end
name.downcase! if ldap_user_conf[:lowercase_name] name.downcase! if ldap_user_conf[:lowercase_name]
name.upcase! if ldap_user_conf[:uppercase_name]
log.info "found user-dn: #{entry.dn}" log.info "found user-dn: #{entry.dn}"
user = LdapRole.new name, entry.dn user = LdapRole.new name, entry.dn
@ -89,6 +90,7 @@ class Application
next next
end end
name.downcase! if ldap_group_conf[:lowercase_name] name.downcase! if ldap_group_conf[:lowercase_name]
name.upcase! if ldap_group_conf[:uppercase_name]
log.info "found group-dn: #{entry.dn}" log.info "found group-dn: #{entry.dn}"
group = LdapRole.new name, entry.dn, entry[ldap_group_conf[:member_attribute]] group = LdapRole.new name, entry.dn, entry[ldap_group_conf[:member_attribute]]