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" ],