From c214c6f32a6f2d7a005d4abe2c70bbf2f758104a Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 10 Nov 2015 18:32:12 +0100 Subject: [PATCH] bug #4107: bug in ldap group code Tested with net-ldap 0.8.0 (cherry picked from commit c825150c06a0994624fa86e4d09daf10fe1e4a4f) --- 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 9a1c1aad52..0518a73f35 100644 --- a/src/authm_mad/remotes/ldap/ldap_auth.rb +++ b/src/authm_mad/remotes/ldap/ldap_auth.rb @@ -148,7 +148,7 @@ class OpenNebula::LdapAuth def is_in_group?(user, group) result=@ldap.search( :base => group, - :attributes => @options[:group_field], + :attributes => [@options[:group_field]], :filter => "(#{@options[:group_field]}=#{user.first})") if result && result.first