Update application.rb
uppercase names config
This commit is contained in:
parent
49a03915a7
commit
e4bd4e46be
@ -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]]
|
||||||
|
Reference in New Issue
Block a user