首页 > 解决方案 > 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​​​​​​​​​​​​​​​&quot; 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 )吗?

标签: jbossldapwildflywildfly-10

解决方案


您需要修改 LDAP 出站连接以使用您创建的安全领域

<outbound-connections>
   <ldap name="ldap_connection" ... security-realm="LdapUserRealm"/>
</outbound-connections>

推荐阅读