0

我已经设置了一个新的 JBoss 服务器,但由于身份验证,我无法使用“jboss-cli.bat”远程访问它。 但是,当我连接到服务器管理 Web 控制台时,我可以进行身份​​验证;

通过 CLI 我收到以下错误;

无法针对 上的控制器进行身份验证.* . *:9999

这是在运行 'connect 之后.* . *'

如果我在本地运行相同的命令,我可以连接。

我无法在日志中找到有关此失败身份验证的任何条目。

我在跑步;

Windows Server 2008 R2
Wildfly 8.0.0 Alpha

我的standalone.xml 包含;

<interfaces>
    <interface name="ManagementRealm">
        <any-ipv4-address/>
    </interface>
    <interface name="management">
        <any-ipv4-address/>
    </interface>
    <interface name="public">
        <any-ipv4-address/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
    </interface>
</interfaces>

谁能让我正确地解决这个问题。非常感谢,

斯图尔特

4

2 回答 2

2

When you're using CLI you can authenticate using parameters --user and --password.

In my post-receive git hook I ended up with

/opt/wildfly/bin/jboss-cli.sh --user=admin --password=yoursupersecretpassword --connect --command="deploy --force ROOT.war"

I got the idea from here: https://issues.jboss.org/browse/AS7-2036

于 2014-11-28T18:35:14.247 回答
0

我正在使用 redhat 7.6 和 jboss 7.2 eap。我所做的如下: 从standalone.xml 中删除。

<authentication>
        <local default-user="$local" skip-group-loading="true"/> --Delete line
        <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>

<authentication>
       <local default-user="$local" allowed-users="*" skip-group-loading="true"/> --Delete line
       <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>

再见。

于 2020-04-13T23:18:57.560 回答