首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行Wildfly-17单机版失败,原因是配置异常不合理

运行Wildfly-17单机版失败,原因是配置异常不合理
EN

Stack Overflow用户
提问于 2019-07-29 16:33:28
回答 1查看 791关注 0票数 0

为LDAP身份验证配置Wildfly-17失败,并出现异常,告知身份验证下不允许使用属性标记,这是不合理的,因为异常说明身份验证下唯一允许的标记为:

代码语言:javascript
复制
|                 jaas        local       truststore  
|                 kerberos    plug-in     users       
|                 ldap        ***properties***

我尝试刷新服务器,然后重新启动它,但仍然得到相同的异常,下面是我的standalone-full.xml配置文件:

代码语言:javascript
复制
<security-realm name="ManagementRealm">
                <authentication>
                    <local default-user="$local" skip-group-loading="true"/>
                    <ldap connection="EC2" base-dn="CN=Users,DC=mydc1,DC=mydc2,DC=org">
                        <username-filter attribute="sAMAccountName" />
                    </ldap>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization map-groups-to-roles="false">
                    <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>

以下是异常消息:

代码语言:javascript
复制
OPVDX001: Validation error in standalone-full.xml ------------------------------
|
|  50:         <username-filter attribute="sAMAccountName" />
|  51:     </ldap>
|  52:     <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
|          ^^^^ 'properties' isn't an allowed element here
|               
|               Elements allowed here are: 
|                 jaas        local       truststore  
|                 kerberos    plug-in     users       
|                 ldap        properties  
|
|  53: </authentication>
|  54: <authorization map-groups-to-roles="false">
|  55:     <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
|
| 'properties' is allowed in elements: 
| - server > management > security-realms > security-realm > authentication
| - server > management > security-realms > security-realm > authentication > plug-in
| - server > management > security-realms > security-realm > authorization
| - server > management > security-realms > security-realm > authorization > plug-in
| - server > management > outbound-connections > ldap
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-29 20:16:50

将属性元素放在第一位可以解决问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57249949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档