Hi All

Any feedback on this would be really appreciated. 

I kind of tried to debug the issue and realized inside the
addProducer(ConnectionContext context, ProducerInfo info) method of
org.apache.activemq.security.AuthorizationBroker.java the given below
condition becomes true.

if (allowedACLs != null && !securityContext.isInOneOf(allowedACLs)) {
                throw new SecurityException("User " +
securityContext.getUserName() + " is not authorized to write to: " +
info.getDestination());
            }

The allowedACLs is not NULL here , but when checking if the securityContext
has these allowed ACLs then it returns a false get the exception. I noticed
that in the securityContext both authorizedReadDests and
authorizedWriteDests (Cpncurrent HashMaps) are empty for the user. 

And inside isInOneOf(allowedACLs) method the group of my user is not
properly being retrieved as I could understand. 

Appreciate any sort of assistance here , since this really needs to be
completed soon.

Thanks
Isuru 



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-authorization-error-with-OpenLDAP-tp4678364p4678382.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to