[ 
https://issues.apache.org/jira/browse/KARAF-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391346#comment-14391346
 ] 

Jason Dillon commented on KARAF-3147:
-------------------------------------

Looks like perhaps wrapping the MBeanServer ref when passed to the connector 
server with proxy-handler that implements the guard for RBAC and leaving the 
default MBeanServer builder alone would probably work:

https://github.com/apache/karaf/blob/master/management/server/src/main/java/org/apache/karaf/management/ConnectorServerFactory.java#L234

That should let local access work as expected, but still allow remote access to 
be controlled and no need to detect local/remote?

> Local JMX connect is not possible
> ---------------------------------
>
>                 Key: KARAF-3147
>                 URL: https://issues.apache.org/jira/browse/KARAF-3147
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 3.0.1
>         Environment: OS X, JDK 7
>            Reporter: Achim Nierbeck
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>             Fix For: 4.0.0, 2.4.2, 3.0.4
>
>
> With neither local process nor with remote jmx connection 
> {code}
> service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root
> {code}
> it's possible to connect to Karaf via JMX. 
> Neither JConsole nor VisualVM is usable. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to