1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-13 13:17:39 +03:00

feature #1916: bug in ldap auth

This commit is contained in:
Javi Fontan 2013-04-30 13:01:16 +02:00
parent 304057391e
commit 6f452b3dfa

View File

@ -73,8 +73,9 @@ class OpenNebula::LdapAuth
end
def is_in_group?(user, group)
result=@ldap.search(:base => group,
:filter => "(#{@options[:group_field]}=#{user})")
result=@ldap.search(
:base => group,
:filter => "(#{@options[:group_field]}=#{user.first})")
if result && result.first
true