mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Ldap filter can use ;
character
This change will allow user_field to contain characters such as `;`. This is useful because some of ldap attributes look like `login;organization`.
This commit is contained in:
parent
1daa959fde
commit
ef0561c90b
@ -127,7 +127,7 @@ class OpenNebula::LdapAuth
|
||||
|
||||
def find_user(name)
|
||||
begin
|
||||
filter = "#{@options[:user_field]}=#{escape(name)}"
|
||||
filter = Net::LDAP::Filter.eq(@options[:user_field], escape(name))
|
||||
|
||||
result = @ldap.search(
|
||||
:base => @options[:base],
|
||||
|
Loading…
x
Reference in New Issue
Block a user