mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
fix default group bug in get_groups()
Users should only be added to the default group if it's defined and the user's groups aren't mapped (ie get_groups() is empty). This is correctly handled by the `remotes/auth/ldap/authenticate` script by checking whether or not get_groups returns an empty list.
This commit is contained in:
parent
9e24ff5a2e
commit
326ed81d1f
@ -180,8 +180,6 @@ class OpenNebula::LdapAuth
|
||||
[@user['memberOf']].flatten.each do |group|
|
||||
if @mapping[group]
|
||||
groups << @mapping[group]
|
||||
else
|
||||
groups << @options[:mapping_default]
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user