1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-14 19:24:10 +03:00

B #5445: fix ldap group search for non rfc2307bis schema

(cherry picked from commit 4c2ad0f14436acc0ce4f0b160cb089a7e40e12c1)
This commit is contained in:
Javi Fontan 2017-10-09 12:01:43 +02:00
parent 15ae0f474f
commit d1aac6bebb

View File

@ -194,7 +194,7 @@ class OpenNebula::LdapAuth
end
end
else
filter = "(#{@options[:group_field]}=#{@user[@options[:user_field]].first})"
filter = "(#{@options[:group_field]}=#{@user[@options[:user_group_field]].first})"
@ldap.search(
:base => @options[:base],
:attributes => [ "dn" ],