mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
fa041d9429
commit
1d3496ba58
@ -161,7 +161,8 @@ class OpenNebula::LdapAuth
|
||||
end
|
||||
|
||||
def is_in_group?(user, group)
|
||||
username = user.first.force_encoding(Encoding::UTF_8)
|
||||
username = Net::LDAP::Filter.escape(
|
||||
user.first.force_encoding(Encoding::UTF_8))
|
||||
result=@ldap.search(
|
||||
:base => group,
|
||||
:attributes => [@options[:group_field]],
|
||||
|
Loading…
x
Reference in New Issue
Block a user