mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
(cherry picked from commit 57e738c424e79b1d35bbe2c38c432d0307ffbb98)
This commit is contained in:
parent
4ea39c0ee0
commit
c508ae015b
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user