mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
revert r16322 (#24970)
Some tests fail. git-svn-id: http://svn.redmine.org/redmine/trunk@16323 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,7 +21,7 @@ require 'timeout'
|
||||
|
||||
class AuthSourceLdap < AuthSource
|
||||
NETWORK_EXCEPTIONS = [
|
||||
Net::LDAP::Error,
|
||||
Net::LDAP::LdapError,
|
||||
Errno::ECONNABORTED, Errno::ECONNREFUSED, Errno::ECONNRESET,
|
||||
Errno::EHOSTDOWN, Errno::EHOSTUNREACH,
|
||||
SocketError
|
||||
@@ -117,7 +117,7 @@ class AuthSourceLdap < AuthSource
|
||||
if filter.present?
|
||||
Net::LDAP::Filter.construct(filter)
|
||||
end
|
||||
rescue Net::LDAP::Error, Net::LDAP::FilterSyntaxInvalidError
|
||||
rescue Net::LDAP::LdapError, Net::LDAP::FilterSyntaxInvalidError
|
||||
nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user