小编Moh*_*dam的帖子

如何使用LDAP ApacheDS配置CAS 4.0

我想用ApacheDS LDAP配置CAS服务器4.0.我按照下面的步骤:

1-基于此链接,我修改了deployerConfigContext.xml文件.以下bean添加到此文件中:

<bean id="ldapAuthenticationHandler"
      class="org.jasig.cas.authentication.LdapAuthenticationHandler"
      p:principalIdAttribute="uid"
      c:authenticator-ref="authenticator">
    <property name="principalAttributeMap">
        <map>
            <!--
               | This map provides a simple attribute resolution mechanism.
               | Keys are LDAP attribute names, values are CAS attribute names.
               | Use this facility instead of a PrincipalResolver if LDAP is
               | the only attribute source.
               -->
            <entry key="member" value="member" />
            <entry key="mail" value="mail" />
            <entry key="displayName" value="displayName" />
        </map>
    </property>
</bean>

<bean id="authenticator" class="org.ldaptive.auth.Authenticator"
      c:resolver-ref="dnResolver"
      c:handler-ref="authHandler" />

<!--
   | The following DN format works for …
Run Code Online (Sandbox Code Playgroud)

ssl cas ldap ssl-certificate apacheds

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

apacheds ×1

cas ×1

ldap ×1

ssl ×1

ssl-certificate ×1