运行ning Wildfly-17 standalone 失败运行 由于不合理的配置异常
running Wildfly-17 standalone failed to run due to unreasonable configuration exception
为 LDAP 身份验证配置 Wildfly-17 失败 运行 异常提示在身份验证下不允许使用属性标记,这是不合理的 因为异常情况表明在身份验证下唯一允许的标记是:
| jaas local truststore
| kerberos plug-in users
| ldap ***properties***
我尝试刷新服务器然后重新启动它,但仍然出现相同的异常
这是我的独立-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
先放属性元素解决问题
为 LDAP 身份验证配置 Wildfly-17 失败 运行 异常提示在身份验证下不允许使用属性标记,这是不合理的 因为异常情况表明在身份验证下唯一允许的标记是:
| jaas local truststore
| kerberos plug-in users
| ldap ***properties***
我尝试刷新服务器然后重新启动它,但仍然出现相同的异常 这是我的独立-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
先放属性元素解决问题