10 Replies Latest reply: Mar 4, 2012 8:06 PM by iran zhou RSS

    JBoss 7.1: Connect to a NON secured domain manager

    Klaus Erber Newbie

      Hello,

       

      since I have problems to connect to a secured domain manager, i try a connection to a non secured domain manager.

       

      JBoss version 7.1CR1b

       

      Master configuration (host.xml):

       

      <?xml version='1.0' encoding='UTF-8'?>
      
      <host name="master" xmlns="urn:jboss:domain:1.1">
      
          <management>
              <management-interfaces>
                  <native-interface>
                      <socket interface="management" port="${jboss.management.native.port:9999}"/>
                  </native-interface>
                  <http-interface>
                      <socket interface="management" port="${jboss.management.http.port:9990}"/>
                  </http-interface>
              </management-interfaces>
          </management>
      
          <domain-controller>
             <local/>
          </domain-controller>
      
          <interfaces>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:10.0.0.10}"/>
              </interface>
              <interface name="public">
                 <inet-address value="${jboss.bind.address:127.0.0.1}"/>
              </interface>
          </interfaces>
      
           <jvms>
              <jvm name="default">
                <heap size="64m" max-size="256m"/>
             </jvm>
           </jvms>
      
          <servers>
          </servers>
      </host>
      

       

      Now I can connect from the slave mashine (ip 10.0.0.11) to the native interface without an authentication on port 9999:

       

      [jboss-as@JBossBox01 bin]$ ./jboss-admin.sh
      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
      [disconnected /] connect 10.0.0.10
      [domain@10.0.0.10:9999 /] version
      JBoss Admin Command-line Interface
      JBOSS_HOME: /opt/jboss-as
      JBoss AS release: 7.1.0.CR1b "Flux Capacitor"
      JAVA_HOME: /usr/lib/jvm/java
      java.version: 1.6.0_22
      java.vm.vendor: Sun Microsystems Inc.
      java.vm.version: 20.0-b11
      os.name: Linux
      os.version: 2.6.32-220.2.1.el6.x86_64
      [domain@10.0.0.10:9999 /]
      

       

      Slave configuration (host.xml):

       

      <host name="node01" xmlns="urn:jboss:domain:1.1">
          <management>
              <management-interfaces>
                  <native-interface>
                      <socket interface="management" port="${jboss.management.native.port:9999}"/>
                  </native-interface>
              </management-interfaces>
          </management>
      
          <domain-controller>
             <remote host="10.0.0.10" port="9999" />
          </domain-controller>
      
          <interfaces>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:10.0.0.11}"/>
              </interface>
              <interface name="public">
                 <inet-address value="${jboss.bind.address:0.0.0.0}"/>
              </interface>
          </interfaces>
      
           <jvms>
              <jvm name="default">
                <heap size="64m" max-size="256m"/>
             </jvm>
           </jvms>
      
          <servers>
              <server name="server-one" group="main-server-group">
              </server>
          </servers>
      </host>
      

       

      The start og the slave fails with the following error:

       

      11:43:02,369 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.0.CR6
      11:43:02,527 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
      [Host Controller] 11:43:02,814 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.0.CR6
      [Host Controller] 11:43:03,231 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.1.GA
      [Host Controller] 11:43:03,328 INFO  [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.1.0.CR1b "Flux Capacitor" starting
      [Host Controller] 11:43:04,151 INFO  [org.xnio] (MSC service thread 1-2) XNIO Version 3.0.0.CR7
      [Host Controller] 11:43:04,175 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.0.CR7
      [Host Controller] 11:43:04,189 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.2.0.CR8
      [Host Controller] 11:43:04,539 ERROR [org.jboss.remoting.remote] (Remoting "endpoint" read-1) JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
      [Host Controller] 11:43:04,548 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 10.0.0.10:9999
      [Host Controller] 11:43:04,555 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010901: Could not connect to master. Aborting. Error was: java.lang.IllegalStateException: JBAS010942: Unable to connect due to authentication failure.
      [Host Controller] 11:43:04,627 INFO  [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.1.0.CR1b "Flux Capacitor" stopped in 59ms
      11:43:04,963 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99
      11:43:04,967 INFO  [org.jboss.as.process] (Thread-8) JBAS012016: Shutting down process controller
      11:43:04,967 INFO  [org.jboss.as.process] (Thread-8) JBAS012015: All processes finished; exiting
      

       

      What means 'all available authentication mechanisms failed'?

       

      Klaus