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
This commit is contained in:
Jean-Philippe Lang committed 2012-03-11 12:01:41 +00:00
1 parent 71e636ff71
commit a8e392c0e5
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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