0 Replies Latest reply on Oct 11, 2013 3:15 AM by Michael Furman

    Can not enable silent authentication for ManagementRealm in Jboss 7.1.1

    Michael Furman Newbie

      I want to add the silent authentication for ManagementRealm in Jboss7.1.1.
      The silent authentication means access without user name password for local IPs.
      According to the 7.1 documentation it should be in the Out Of The Box Configuration:
      https://docs.jboss.org/author/display/AS71/Security+Realms

      <security-realm name="ManagementRealm">
        <authentication>
          <local default-user="$local"/>
          <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
        </authentication>
      </security-realm>

       

      The Out Of The Box Configuration does not include the local element.
      Unfortunately, when I add the local element I have the following exception.
      I checked jboss-as-config_1_2.xsd and it does not look support the local element.
      How should I configure the silent authentication for ManagementRealm?

      The exception:
      19:19:48,106 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1
      .Final.jar:7.1.1.Final]
              at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:
      7.1.1.Final]
              at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[36,21]
      Message: JBAS014789: Unexpected element '{urn:jboss:domain:1.2}local' encountered
              at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final
      ]
              at org.jboss.as.domain.management.parsing.ManagementXml.parseAuthentication_1_1(ManagementXml.java:526) [jboss-as-domain-management-
      7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.domain.management.parsing.ManagementXml.parseSecurityRealm_1_1(ManagementXml.java:312) [jboss-as-domain-management-7
      .1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.domain.management.parsing.ManagementXml.parseSecurityRealms(ManagementXml.java:247) [jboss-as-domain-management-7.1.
      1.Final.jar:7.1.1.Final]
              at org.jboss.as.domain.management.parsing.ManagementXml.parseManagement(ManagementXml.java:130) [jboss-as-domain-management-7.1.1.Fi
      nal.jar:7.1.1.Final]
              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:325) [jboss-as-server-7.1.1.Final.jar:7.1.1.Fi
      nal]
              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1
      .Final.jar:7.1.1.Final]
              ... 3 more