bug #4107: bug in ldap group code

Tested with net-ldap 0.8.0

(cherry picked from commit c825150c06)
This commit is contained in:
Javi Fontan committed 2015-11-10 18:33:41 +01:00
1 parent 7724a1c883
commit c214c6f32a
1 file changed
+1 -1
+1 -1
View File
@@ -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