1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5946: Compare group_admin groups case-insens. (#2269)

(cherry picked from commit 57e738c424e79b1d35bbe2c38c432d0307ffbb98)
This commit is contained in:
Jan Orel 2022-08-31 10:37:44 +02:00 committed by Tino Vázquez
parent 4ea39c0ee0
commit c508ae015b
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -213,7 +213,9 @@ class OpenNebula::LdapAuth
groups = []
ldap_groups.each do |group|
if (g = in_hash_ignore_case?(@mapping, group))
if ldap_groups.include? @options[:group_admin_group_dn]
if ldap_groups.any? {
|s| s.casecmp(@options[:group_admin_group_dn])==0
}
groups << "*#{@mapping[g]}"
else
groups << @mapping[g]