W
W
wellusion2016-03-22 17:07:24
Java
wellusion, 2016-03-22 17:07:24

How to access the Wildfly admin panel?

Faced such a problem. Until recently, the wildfly admin panel started up without problems, but now, when accessing localhost:9990 , the following panel falls out:
e29508c8414345b2b70d83f091cee797.png
It's not entirely clear why it doesn't let me into the admin panel + what kind of interface? I tried to add, but it comes out like this:
6e548508d7e245a1938340c3d538e200.png
I am authorized. The server is running. There is nothing criminal in the logs.
When accessing 127.0.0.1:9990/management I get:
{
"outcome" : "failed",
"failure-description" : "WFLYCTL0313: Unauthorized to execute operation 'read-resource' for resource '[]' - \"WFLYCTL0332: Permission denied\"",
"rolled-back" : true
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
wellusion, 2016-03-22
@wellusion

The problem was with permissions. WildFly, unlike JBoss, supports 2 schemes for ensuring user rights in the admin panel:
- Simple - similar to JBoss. Any admin has unlimited rights.
- RBAC (Role Based Access Control) - allows, respectively, to differentiate access to the admin panel.
By default, when installing the server, the access parameter is set to Simple and is located here:
{wildfly}\standalone\configuration\standalone.xml
{wildfly}\domain\configuration\domain.xml

<management>
  ...
    <access-control provider="simple">
        <role-mapping>
            <role name="SuperUser">
                <include>
                    <user name="$local"/>
                </include>
            </role>
        </role-mapping>
    </access-control>
</management>

The problem is in the provider parameter - I had the value "rbac". It needs to be changed to simple.

K
Konstantin Malyarov, 2016-03-22
@Konstantin18ko

Create another user. What is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question