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

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

This commit is contained in:
Jan Orel 2022-08-31 10:37:44 +02:00 committed by GitHub
parent c96f43a782
commit 57e738c424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]