Showing results for 
Search instead for 
Did you mean: 

Authentication and authorization for a custom connector

Former Member
0 Kudos

I have the following problem: I have a software which tries to connect with the server through its own custom RMI connector.

So I have the RMI Connector deployed via Mlet-Service. I have written a small TestClient and can get a RemoteMBeanServer with RemoteMBeanServer rs = getRemoteMBeanServer(), but if I try to call something like rs.getMBeanCount() I get : Caller Guest not authorized, only role administrators is allowed to access JMX

So the WebAS considers someone who tries to connect with this connector as guest. How do can I get authentication and autorization to access the JMX parts? The manual seems only to cover JSP and webapplications, where it is possible to configure a role for them. I only have this connector.jar, configuration and mlet-file.

I still have the option to use JAAS authentication with this connector, then I have to configure it differently and, the more difficult, to implemend

a method "public Subject authenticate(Object credentials)" where credentials are two Strings with user and passwd. But I am not quite sure how to fill the Subject with useful information.

Thanks in advance


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Jmx is secured resource and only administrator role user

can access it.

If your code is running in a servlet you can define

the servlet to run as administrator

1. Add in the web.xml




2. Add in the web-j2ee-engine.xml





If you are runnig from a remote client you just have to

Properties connectionProperties = new Properties();





(Context.PROVIDER_URL, "<host:p4port>");





MBeanServerConnection mbsc =