【问题标题】:Wildfly 20 - Admin ManagementRealm (security-realm) on ldap SSLWildfly 20 - ldap SSL 上的管理管理领域(安全领域)
【发布时间】:2020-12-25 17:14:04
【问题描述】:

我配置了 wildfly 20,但在 ldap SSL 上的 ManagementRealm(安全领域)存在问题。 使用 LDAP,没关系,但是一旦我切换到 ldaps,身份验证就不再起作用。 登录窗口打开,无论我指定什么帐户(即使是真或假登录),我都会返回“连接到管理界面”屏幕(实际上是空白的)。

而且我在任何日志中都没有错误。 我在 centos 8 上尝试了 WildFly 19 和 20。 trustore 确实存在,我在启动变量中添加了它(以及它的密码) 这是我的standalone.xml文件的摘录

<security-realms>
    <security-realm name="ManagementRealm">
        <authentication>
            <local default-user="$local" skip-group-loading="true"/>
            <ldap connection="ldap_connection" base-dn="OU=Utilisateurs,DC=org">
                <advanced-filter filter="(&amp;(sAMAccountName={0})(memberOf=CN=APP-ADMIN,OU=Utilisateurs,DC=org))"/>
            </ldap>
            <truststore path="truststore.jks" relative-to="jboss.server.config.dir" keystore-password="XXX" />
        </authentication>
        <authorization map-groups-to-roles="false">
            <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
        </authorization>
    </security-realm>
    <security-realm name="LdapSSLRealm">
        <authentication>
            <truststore path="truststore.jks" relative-to="jboss.server.config.dir" keystore-password="XXX" />
        </authentication>
    </security-realm>
</security-realms>
<outbound-connections>
    <ldap name="ldap_connection" url="ldaps://serveurad:636" search-dn="user" search-credential="XXX"/>
</outbound-connections>
    

如果有人有想法,我将不胜感激。

【问题讨论】:

    标签: ldap realm wildfly


    【解决方案1】:

    有点晚了,但我相信您还必须在 &lt;outbound-connection /&gt; 中引用安全领域(包含对信任存储的引用):

    <outbound-connections>
        <ldap name="ldap_connection" url="ldaps://serveurad:636" search-dn="user" search-credential="XXX" security-realm="LdapSSLRealm"/>
    </outbound-connections>
    

    【讨论】:

      猜你喜欢
      • 2013-12-01
      • 1970-01-01
      • 2020-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-23
      相关资源
      最近更新 更多