summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-30 18:07:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-30 18:07:23 +0000
commit427b47b4d72276b5c80d79cd5f8e16c2aa31da1e (patch)
tree1bb017836fa02f6b3b45b3b8cf9b166fb0cc11c1
parentc2220cffcfbf3eec00f7eee62a55242bf4ede7ae (diff)
downloadredmine-427b47b4d72276b5c80d79cd5f8e16c2aa31da1e.tar.gz
redmine-427b47b4d72276b5c80d79cd5f8e16c2aa31da1e.zip
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
-rw-r--r--app/models/auth_source_ldap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index 3adca62ae..fcb8447b7 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -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