Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Switching between simple and RBAC providers


In this recipe, we will learn how to switch from the simple provider to the RBAC provider. RBAC provides a fine-grained access control to our management console.

Getting ready

To get started, let's first create an ad-hoc folder to run our WildFly. In a terminal window, execute the following commands:

$ cd $WILDFLY_HOME
$ cp -a standalone rbac-std-node-1

Now it's time to run our WildFly!!!

How to do it…

Perform the following steps:

  1. Open a terminal window and enter the following commands:

    $ cd $WILDFLY_HOME
    $ ./bin/standalone.sh -Djboss.server.base.dir=rbac-std-node-1
  2. Once started, in a new terminal window, connect to the CLI and switch to the RBAC provider, as follows:

    $ cd $WILDFLY_HOME
    $ ./bin/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 /] /core-service=management/access=authorization:write-attribute(name=provider...