jboss - Wildfly LDAPS 集成失败
问题描述
将 LDAP 转换为 LDAPS 后,我遇到了身份验证问题。这是我的standalone.xml文件的摘录。如您所见,我添加了一个带有 LDAPS 证书的可信存储。我只是想知道我是否错过了什么。我在 Wildfly v10 上。
<security-realms>
<security-realm name="LdapUserRealm">
<server-identities>
<ssl>
<keystore path="identity.jks" relative-to="jboss.server.config.dir" keystore-password="xxxxx" alias="xxxxx"/>
</ssl>
</server-identities>
<authentication>
<truststore path="cacerts" relative-to="jboss.server.config.dir" keystore-password="xxxxx"/>
<ldap connection="LdapConnection" base-dn="dc=xxx,dc=ad,dc=xxx,dc=com" recursive="true">
<username-filter attribute="sAMAccountName"/>
</ldap>
</authentication>
</security-realm>
</security-realms>
<outbound-connections>
<ldap name="LdapConnection" search-credential="xxxxxx" search-dn="cn=-svc-xxx-xxx,OU=Svc,OU=XTX,OU=Admin,dc=xxx,dc=ad,dc=xxx,dc=com" url="ldaps://xxx.xxx.xxx:636" />
</outbound-connections>
任何指针或建议表示赞赏。如果有一个我可以比较的工作配置文件,将不胜感激。有人可以分享一个使用 LDAPS 成功连接的 JBoss/Wildfly 配置文件(特别是standalone.xml )吗?
解决方案
您需要修改 LDAP 出站连接以使用您创建的安全领域
<outbound-connections>
<ldap name="ldap_connection" ... security-realm="LdapUserRealm"/>
</outbound-connections>
推荐阅读
- javascript - Vue.js 和 vue-datepicker:在全局状态下保存一个选择的时间段
- assembly - OSDEV 多任务运行应用程序
- python - 来自熊猫数据框的列表理解
- xamarin.forms - 在使用 xamarin 表单的代码中为 ResourceDictionary 内的标签赋值
- c - 将用户输入存储到两个数组中
- http - 在服务器生成响应之后并将其发送给客户端之前设置断点
- kibana - Kibana 仪表板页面到发现页面 On-Click
- javascript - 尝试在 XPage 上使用“executeOnServer”从 Javascript 触发 SSJS
- web-crawler - 列“nextfetchdate”的 StormCrawler SQL 错误
- android - Exoplayer 源错误