简体   繁体   English

由于不合理的配置异常,运行Wildfly-17 Standalone失败

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

Configure Wildfly-17 for LDAP Authentication failed to run with exception telling that properties tag not allowed under authentication which is not reasonable As the exception says that the only allowed tags under authentication are: 配置Wildfly-17进行LDAP身份验证无法运行,并显示异常消息,说明在身份验证下不允许使用属性标签,这是不合理的。该异常表明,在身份验证下唯一允许的标签为:


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

I tried to refresh the server then restart it, but still get the same exception here is my standalone-full.xml configuration file: 我尝试刷新服务器然后重新启动它,但是仍然出现相同的异常,这是我的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>

Here is the Exception message: 这是异常消息:

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.

相关问题 Wildfly 17 Elytron:使用EAR中的类进行服务器端身份验证 - Wildfly 17 Elytron: server side authentication with classes from EAR 使用IIS8.0 Express进行.NET Forms身份验证(vs2013) - 401.2。:未授权:由于服务器配置,登录失败 - .NET Forms Authentication using IIS8.0 Express (vs2013) - 401.2.: Unauthorized: Logon failed due to server configuration Wildfly - FailedLoginException:密码不正确/需要密码异常 - Wildfly - FailedLoginException: Password Incorrect/Password Required Exception 配置系统初始化失败 - Configuration System Failed to Initialize 由于 package 名称不同,Firebase 中的用户身份验证失败? Android、Java - User authentication failed in Firebase due to different package name ? Android, Java Java安全异常:校验和失败 - java security exception : checksum failed Paramiko 认证失败/认证异常 - Paramiko authentication failed / authentication exception 无法连接[登录失败的帐户登录由于密码错误] - Can't connect [Logged on failed AccountLogin due wrong password] 无效的用户或密码或帐户因多次登录尝试失败而被阻止 - Invalid user or password or the account is blocked due to multiple failed login attempts FAILURE:构建失败,出现异常 flutter 错误。 帮我 - FAILURE: Build failed with an exception flutter error . help me
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM