1
0
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:
Justin Riley 2015-07-06 16:28:40 -04:00
parent 9e24ff5a2e
commit 326ed81d1f

View File

@ -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