1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

B #3939: ldap search attributes should be an array

This commit is contained in:
Javi Fontan 2017-08-25 10:14:58 +02:00
parent 01be523f81
commit 5d1e5f6a4c

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]