Authentication 如何知道身份验证失败的原因?(JBOSS上的JEE应用程序)
我正在尝试使用LDAP进行身份验证。我使用JBOSS EAP 6.4作为应用服务器。我当前的配置如下- web.xmlAuthentication 如何知道身份验证失败的原因?(JBOSS上的JEE应用程序),authentication,jakarta-ee,jboss,ldap,jaas,Authentication,Jakarta Ee,Jboss,Ldap,Jaas,我正在尝试使用LDAP进行身份验证。我使用JBOSS EAP 6.4作为应用服务器。我当前的配置如下- web.xml <security-constraint> <web-resource-collection> <web-resource-name>HtmlAuth</web-resource-name> <description>application security constrain
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAuth</web-resource-name>
<description>application security constraints
</description>
<url-pattern>/ui/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>LdapRealm</realm-name>
</login-config>
海姆劳斯
应用程序安全约束
/用户界面/*
得到
邮递
*
基本的
LdapRealm
在jboss standalong.xml文件中,我创建了如下出站连接-
<outbound-connections>
<ldap name="ldapqa" url="ldaps://myldapurl" search-dn="my ldap user" search-credential="my ldap password"/>
</outbound-connections>
还有一个是安全领域-
<security-realm name="LdapRealm">
<authentication>
<ldap connection="ldapqa" base-dn="my searchbase">
<username-filter attribute="uid"/>
</ldap>
</authentication>
</security-realm>
现在,当我点击安全URL时,我得到了基本弹出窗口,但在正确输入后,我无法登录。我如何知道未登录的原因。我已将日志记录级别设置为跟踪,但日志中仍然没有任何内容。
还有,我在配置中犯了什么错误?我已经检查了该链接,可能重复。即使我做出了答案中建议的改变,我也会得到同样的行为。