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:
parent
304057391e
commit
6f452b3dfa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user