Fixed: Can not authenticate user against LDAP if its DN contains non-ascii characters.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@781 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c2220cffcf
commit
427b47b4d7
|
@ -70,7 +70,7 @@ private
|
|||
def initialize_ldap_con(ldap_user, ldap_password)
|
||||
Net::LDAP.new( {:host => self.host,
|
||||
:port => self.port,
|
||||
:auth => { :method => :simple, :username => Iconv.new('iso-8859-15', 'utf-8').iconv(ldap_user), :password => Iconv.new('iso-8859-15', 'utf-8').iconv(ldap_password) }}
|
||||
:auth => { :method => :simple, :username => ldap_user, :password => ldap_password }}
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue