From d1aac6bebb9ead7798221ad2fc3629725df34f6f Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 9 Oct 2017 12:01:43 +0200 Subject: [PATCH] B #5445: fix ldap group search for non rfc2307bis schema (cherry picked from commit 4c2ad0f14436acc0ce4f0b160cb089a7e40e12c1) --- src/authm_mad/remotes/ldap/ldap_auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/ldap/ldap_auth.rb b/src/authm_mad/remotes/ldap/ldap_auth.rb index 4fbb133281..9a7ac5220c 100644 --- a/src/authm_mad/remotes/ldap/ldap_auth.rb +++ b/src/authm_mad/remotes/ldap/ldap_auth.rb @@ -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" ],