diff --git a/src/authm_mad/remotes/ldap/ldap_auth.rb b/src/authm_mad/remotes/ldap/ldap_auth.rb index 745afb4c32..f73ce027e9 100644 --- a/src/authm_mad/remotes/ldap/ldap_auth.rb +++ b/src/authm_mad/remotes/ldap/ldap_auth.rb @@ -196,7 +196,7 @@ class OpenNebula::LdapAuth filter = "(#{@options[:group_field]}=#{@user[@options[:user_field]].first})" @ldap.search( :base => @options[:base], - :attributes => "dn", + :attributes => [ "dn" ], :filter => filter ) do |entry| if @mapping[entry.dn]