1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #3939: ldap search attributes should be an array

(cherry picked from commit 5d1e5f6a4c13d9302bf8e407caa0311a7f70c3e9)
This commit is contained in:
Javi Fontan 2017-08-25 10:14:58 +02:00
parent 6b0deba1cc
commit c0a9c67a89

View File

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