Mike Bryant created AMQ-3845:
--------------------------------

             Summary: CachedLDAPAuthorizationMap doesn't handle the ldap 
connectino dying
                 Key: AMQ-3845
                 URL: https://issues.apache.org/jira/browse/AMQ-3845
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.6.0
            Reporter: Mike Bryant


If the ldap connection dies for some reason (ldap server restarting etc.), the 
broker will continue to attempt to use the old connection for authorization, 
resulting in all attempts to use the broker being denied.

In CachedLDAPAuthorizationMap.java, the open() function just returns the 
context if one exists. Instead, it should check to see if the context is still 
valid, and if not create one.

Alternatively, the caching of the ldap connection can be removed entirely, and 
then in the refreshInterval>0 case, a new ldap connection will be made each 
refresh interval (default setting: every 5 minutes).
i.e. delete these lines:
        if (context != null) {
            return context;
        }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to