diff --git a/src/authm_mad/remotes/ldap/ldap_auth.rb b/src/authm_mad/remotes/ldap/ldap_auth.rb index 9a1c1aad52..0518a73f35 100644 --- a/src/authm_mad/remotes/ldap/ldap_auth.rb +++ b/src/authm_mad/remotes/ldap/ldap_auth.rb @@ -148,7 +148,7 @@ class OpenNebula::LdapAuth def is_in_group?(user, group) result=@ldap.search( :base => group, - :attributes => @options[:group_field], + :attributes => [@options[:group_field]], :filter => "(#{@options[:group_field]}=#{user.first})") if result && result.first