2 Replies Latest reply on May 25, 2010 9:24 AM by t0m.guenter

    Unable to change JMX Login/Password

    t0m.guenter

      Hi all,

       

      I tried unsuccessfully to change the login and password of the JMX service of a SMX 4.2 instance.

      According to the documentation (http://fusesource.com/docs/esb/4.2/runtime/ESBRuntimeJMXConfig.html), this should be possible by setting the properties jmxLogin and jmxPassword within the file org.apache.felix.karaf.management.cfg. But however I set these properties, only the access with the default credentials (karaf/karaf) is possible.

       

      Is this a but or am I doing something wrong?

       

      Thanks!

       

      Regards,

      Thomas

       

       

       

      File org.apache.felix.karaf.management.cfg:

       

      rmiRegistryPort = 1199

      jmxRealm = karaf

      serviceUrl = service:jmx:rmi:///jndi/rmi://localhost:$/karaf-${karaf.name}

      daemon = true

      threaded = true

      objectName = connector:name=rmi

      jmxLogin = admin

      jmxPassword = admin

        • 1. Re: Unable to change JMX Login/Password
          ffang

          Hi,

           

          You need edit the jaas configuration file

          $SMX4_HOME/etc/users.properties,

          add

          admin=admin

           

          Freeman

          • 2. Re: Unable to change JMX Login/Password
            t0m.guenter

            Hi Freeman,

             

            thanks for your hint. It worked.

            However, the properties (jmxLogin, jmsPassword) in org.apache.felix.karaf.management.cfg don't seem to have any influence at all.

             

            My user.properties now looks like the following:

             

            #karaf=karaf,admin

            admin=kadmin

             

            And hence the login with admin (with password kadmin) and only with this credentials work.

             

            Regards,

            Tom