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

Matt Pavlovich edited comment on KARAF-6888 at 10/16/20, 9:59 PM:
------------------------------------------------------------------

Easy happy path testing:

1. Grab apache-karaf-4.2.9-unix.tar.gz
2. Replace these files: bin/karaf, etc/jre.properties, 
org.apache.karaf.management.server-4.2.9.jar
3. Start karaf ./bin/karaf debug
4. Run JMXMPClient.java test

Expected output:
{noformat}
Domain[0] = JMImplementation
Domain[1] = java.util.logging
Domain[2] = jdk.management.jfr
Domain[3] = java.lang
Domain[4] = com.sun.management
Domain[5] = connector
Domain[6] = osgi.compendium
Domain[7] = java.nio
Domain[8] = org.apache.karaf
Domain[9] = osgi.core
{noformat}


was (Author: mattrpav):
Easy happy path testing:

1. Grab apache-karaf-4.2.9-unix.tar.gz
2. Replace these files: bin/karaf, etc/jre.properties, 
org.apache.karaf.management.server-4.2.9.jar
3. Run JMXMPClient.java test

> Sort out JMXMP authentication
> -----------------------------
>
>                 Key: KARAF-6888
>                 URL: https://issues.apache.org/jira/browse/KARAF-6888
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 4.2.9
>            Reporter: Matt Pavlovich
>            Priority: Major
>         Attachments: ConnectorServerFactory.java, JMXMPClient.java, 
> JaasAuthenticator.java, PlainSaslServer.java, jre.properties, karaf, 
> org.apache.karaf.management.server-4.2.9.jar
>
>
> Out-of-the-box, karaf's jmxmp support doesn't seem to have a happy path. With 
> the following changes, I'm able to get a list of JMX domains.
> Notes:
> 1. Probably need to support SASL/PLAIN to keep it simple to start, then add 
> TLS
> 2. JDK's don't ship with a SASL/PLAIN Provider anymore, so we need to 
> implement one. The attached one is adapted from Apache Hive's implementation
> 3. The jmxmp classes and sasl modules need to be added to karaf startup and 
> etc/jre.properties
> 4. Need to solve for a ClassNotFound error for legacy 
> com/sun/jdmk/security/sasl/AuthenticateCallback that is not included in the 
> jmxmp jar
> 5. Consider using the javax.management jar instead (as src jars are available 
> for debugging)
> {noformat}
> <dependency>
>   <groupId>javax.management</groupId>
>   <artifactId>jmx-remote-optional-jmxmp</artifactId>
>   <version>1.0-b06</version>
> </dependency>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to