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:
parent
01be523f81
commit
5d1e5f6a4c
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user