簡體   English   中英

由於不合理的配置異常,運行Wildfly-17 Standalone失敗

[英]running Wildfly-17 standalone failed to run due to unreasonable configuration exception

配置Wildfly-17進行LDAP身份驗證無法運行,並顯示異常消息,說明在身份驗證下不允許使用屬性標簽,這是不合理的。該異常表明,在身份驗證下唯一允許的標簽為:


|                 jaas        local       truststore  
|                 kerberos    plug-in     users       
|                 ldap        ***properties***

我嘗試刷新服務器然后重新啟動它,但是仍然出現相同的異常,這是我的standalone-full.xml配置文件:

<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>

這是異常消息:

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

將屬性元素放在第一位即可解決問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM