summaryrefslogtreecommitdiffstats
path: root/app/models/auth_source_ldap.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-11 12:01:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-11 12:01:41 +0000
commita8e392c0e5732e934b6e45a68a69e9e0170432c9 (patch)
tree2137e0d6a33166a1a8566ab6432a511d836ec034 /app/models/auth_source_ldap.rb
parent71e636ff71791bafdc2638d4916c68f5235e957a (diff)
downloadredmine-a8e392c0e5732e934b6e45a68a69e9e0170432c9.tar.gz
redmine-a8e392c0e5732e934b6e45a68a69e9e0170432c9.zip
Fixed that LDAP error is not displayed when testing connection.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9234 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source_ldap.rb')
-rw-r--r--app/models/auth_source_ldap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index bf8d70478..5b8dc0cfe 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -49,8 +49,8 @@ class AuthSourceLdap < AuthSource
def test_connection
ldap_con = initialize_ldap_con(self.account, self.account_password)
ldap_con.open { }
- rescue Net::LDAP::LdapError => text
- raise "LdapError: " + text
+ rescue Net::LDAP::LdapError => e
+ raise "LdapError: " + e.message
end
def auth_method_name