1 Reply Latest reply on Jun 20, 2018 6:48 AM by sshriram09

    Bind multiple security realms to management interface

    ninjasftw

      Hi,

       

      I'm running several nodes of Infinispan 8.2.6. 

      As part of an environment refresh process i'm trying to automate the build and configuration process.

       

      My current build is configured so that the management realm is connected to our LDAP system. 

      When i trigger an automated build I don't want to have to pass it personal account credentials.

       

      I was hoping that I could create another realm using the mgmt-users files which I could populate with a temporary build user

       

      When I try and bind the realm to the management-interface it complains that http-interface is being duplicated

              <management-interfaces>

                  <http-interface security-realm="LdapRealm" http-upgrade-enabled="true">

                      <socket-binding https="management-https"/>

                  </http-interface>

                  <http-interface security-realm="LocalRealm" http-upgrade-enabled="true">

                      <socket-binding https="management-https"/>

                  </http-interface>

              </management-interfaces>

       

      Does anyone know if it is possible to bind multiple realms to the management interface?

       

      As a fall back I can probably configure the environment using a local realm to start with and then switch to the LdapRealm right at the very end.  However this will stop me from performing any automated operations in the future.

      Thanks

      Karl

        • 1. Re: Bind multiple security realms to management interface
          sshriram09

          Are you running Wildfly in standalone mode or domain mode ?

           

          If you want to use multiple realm for http interface you can configure JAAS authentication Admin Guide - WildFly 8 - Project Documentation Editor where you can stack multiple Wildlfly login modules.

           

          Eg.

           

          <security-realm name="ManagementRealm">

                          <authentication>

                              <jaas name="JaasAuth"/>

                          </authentication>

          </security-realm>

           

          Create a jaas.conf as below:

           

          JaasAuth {

             org.jboss.security.auth.spi.LdapExtLoginModule sufficient

               .........

           

            org.jboss.security.auth.spi.UsersRolesLoginModule sufficient

                ........... ;

          };