From c0a9c67a89f1b556e2bb5d0e61e3cbfded83f3d3 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 25 Aug 2017 10:14:58 +0200 Subject: [PATCH] B #3939: ldap search attributes should be an array (cherry picked from commit 5d1e5f6a4c13d9302bf8e407caa0311a7f70c3e9) --- src/authm_mad/remotes/ldap/ldap_auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]