1
0
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:
Dušan Baran 2017-08-23 14:41:58 +02:00 committed by Javi Fontan
parent 1daa959fde
commit ef0561c90b

View File

@ -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],