3 Replies Latest reply on Jun 13, 2017 10:59 PM by BUNTY RAY

    Steps to Enable RBAC Provider in Wildfy 10

    BUNTY RAY Newbie

      Please help with steps to setup RBAC provider with Wildfly 10

        • 1. Re: Steps to Enable RBAC Provider in Wildfy 10
          BUNTY RAY Newbie

          Getting below error

           

          ./jboss-cli.sh

          You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

          [disconnected /] connect

          [standalone@localhost:9990 /] cd core-service=management/access=authorization

          [standalone@localhost:9990 access=authorization] :write-attribute(name=provider,value=rbac)

          {

              "outcome" => "failed",

              "failure-description" => "WFLYDM0068: The current operation(s) would result in role based access control being enabled but leave it impossible for authenticated users to be assigned roles.",

              "rolled-back" => true

          }

          [standalone@localhost:9990 access=authorization]

          • 2. Re: Steps to Enable RBAC Provider in Wildfy 10
            Abhijit Humbe Expert

            Tried with similar commands and its working file for me:

            CLI commands:

            `/core-service=management/access=authorization:write-attribute(name=provider,value=rbac)

            /core-service=management/access=authorization/role-mapping=SuperUser:add

            /core-service=management/access=authorization/role-mapping=Monitor/include=ManagementRealm:add(name=user1,type=USER)`

             

             

            Output

            [standalone@localhost:9990 /] /core-service=management/access=authorization:write-attribute(name=provider,value=rbac)

            {

                "outcome" => "success",

                "response-headers" => {

                    "operation-requires-reload" => true,

                    "process-state" => "reload-required"

                }

            }

            [standalone@localhost:9990 /] /core-service=management/access=authorization/role-mapping=SuperUser:add

            {

                "outcome" => "success",

                "response-headers" => {"process-state" => "reload-required"}

            }

            [standalone@localhost:9990 /] /core-service=management/access=authorization/role-mapping=Monitor/include=ManagementRealm:add(name=user1,type=USER)

            {

                "outcome" => "success",

                "response-headers" => {"process-state" => "reload-required"}

            }

            • 3. Re: Steps to Enable RBAC Provider in Wildfy 10
              BUNTY RAY Newbie

              still it not working for me. Its a vanilla installation of wildfly