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

(cherry picked from commit 4c2ad0f144)
This commit is contained in:
Javi Fontan committed 2017-10-09 12:03:05 +02:00
1 parent 15ae0f474f
commit d1aac6bebb
1 file changed
+1 -1
+1 -1
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" ],