Repository: qpid-broker-j
Updated Branches:
  refs/heads/7.0.x 75ca738f8 -> 06c01aa94


QPID-8208: [Broker-J] Strengthen handling of exception thrown on establishing 
of LDAP connections

(cherry picked from commit 93a288fdc6d44c0a39ad217beb4b58e768753128)


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/06c01aa9
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/06c01aa9
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/06c01aa9

Branch: refs/heads/7.0.x
Commit: 06c01aa94dd4e71be8280c1fd218f909fddf3f15
Parents: 75ca738
Author: Alex Rudyy <[email protected]>
Authored: Mon Jun 11 23:03:33 2018 +0100
Committer: Alex Rudyy <[email protected]>
Committed: Mon Jun 11 23:13:50 2018 +0100

----------------------------------------------------------------------
 .../auth/manager/SimpleLDAPAuthenticationManagerImpl.java | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/06c01aa9/broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/SimpleLDAPAuthenticationManagerImpl.java
----------------------------------------------------------------------
diff --git 
a/broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/SimpleLDAPAuthenticationManagerImpl.java
 
b/broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/SimpleLDAPAuthenticationManagerImpl.java
index 863f421..50abf4a 100644
--- 
a/broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/SimpleLDAPAuthenticationManagerImpl.java
+++ 
b/broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/SimpleLDAPAuthenticationManagerImpl.java
@@ -317,6 +317,11 @@ public class SimpleLDAPAuthenticationManagerImpl extends 
AbstractAuthenticationM
             LOGGER.warn("Retrieving LDAP name for user '{}' resulted in 
error.", userId, e);
             return new 
AuthenticationResult(AuthenticationResult.AuthenticationStatus.ERROR, e);
         }
+        catch (Exception e)
+        {
+            LOGGER.warn("Unexpected exception on retrieving LDAP name for user 
'{}' ", userId, e);
+            return new 
AuthenticationResult(AuthenticationResult.AuthenticationStatus.ERROR, e);
+        }
 
         if(name == null)
         {
@@ -361,6 +366,11 @@ public class SimpleLDAPAuthenticationManagerImpl extends 
AbstractAuthenticationM
             LOGGER.warn("LDAP authentication attempt for username '{}' 
resulted in error.", name, e);
             return new 
AuthenticationResult(AuthenticationResult.AuthenticationStatus.ERROR, e);
         }
+        catch (Exception e)
+        {
+            LOGGER.warn("Unexpected exception on authentication attempt for 
username '{}' ", userId, e);
+            return new 
AuthenticationResult(AuthenticationResult.AuthenticationStatus.ERROR, e);
+        }
         finally
         {
             if(ctx != null)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to