jBoss add-user.bat没有看到新领域
我在jBoss add-user.bat没有看到新领域,jboss,Jboss,我在standalone.xml中创建了一个新领域,现在我正试图在该领域中创建一个新用户。当我使用完全命令时,比如 add-user -a -r realm-name -u user -p password 我得到一个错误: JBAS015281: The user supplied realm name 'realm-name' does not match the realm name discovered from the property file(s) 'ApplicationRea
standalone.xml
中创建了一个新领域,现在我正试图在该领域中创建一个新用户。当我使用完全命令时,比如
add-user -a -r realm-name -u user -p password
我得到一个错误:
JBAS015281: The user supplied realm name 'realm-name' does not match the realm name discovered from the property file(s) 'ApplicationRealm'.
当我运行justadduser
时,会提示选择领域,列表中只有applicationrealm和managementrealm
以下是我在standalone.xml
中的代码片段:
1) 领域
2) 王国
添加用户实用程序不管理新属性文件,您必须单独管理 看: 将用户和角色添加到此新领域时,信息将存储在与默认安全领域不同的单独文件中。您可以使用自己的应用程序或过程管理此新文件
我在这里发布我找到的解决方案,也许它对遇到这个问题的其他人有用 我在Jboss Eap 7上使用add-user.sh,试图将用户添加到我创建的新安全领域,但遇到了相同的问题:
jboss-eap-7.0/bin/add-user.sh -r HttpsRealm
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a):
我的新领域似乎无法识别,但如果我同时指定我创建的与领域相关的新属性文件,它将按预期工作
jboss-eap-7.0/bin/add-user.sh -r HttpsRealm -up stand-env/stand1/standalone/configuration/https-mgmt-users.properties
Enter the details of the new user to add.
Using realm 'HttpsRealm' as discovered from the existing property files.
Username :
希望它能帮助别人 对不起,我还不明白。您的链接是关于如何创建领域的,但我不是通过编辑
standalone.xml
来创建的吗?如果我真的不能,按照你的说法,用它来添加用户,那么,添加用户
到底做了什么呢?是的!standalone.xml或domain.xml!添加用户是一个默认实用程序,管理默认领域。但是,对于领域工作,必须将其分配给一个可用的管理界面。我知道您想创建自己的用户管理存储库…在中,命令是add-user.sh-up-r
,但它不起作用。但是首先指定领域(-r
),然后指定用户属性(-up
)效果很好。谢谢你发布这个答案。
jboss-eap-7.0/bin/add-user.sh -r HttpsRealm
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a):
jboss-eap-7.0/bin/add-user.sh -r HttpsRealm -up stand-env/stand1/standalone/configuration/https-mgmt-users.properties
Enter the details of the new user to add.
Using realm 'HttpsRealm' as discovered from the existing property files.
Username :