Jasig CAS LDAP-如何获取角色
我安装了jasig 3.4.7,启用了OpenLDAP和ssl。我可以通过CAS登录到LDAP中创建的帐户:很好 现在我需要通过管理界面声明服务:我意识到我没有“管理员”帐户。所以我试着给我的用户添加一个组“ADMIN”。我的第一个问题:这是正确的方法吗 我以这种方式声明了contextSource:Jasig CAS LDAP-如何获取角色,ldap,cas,jasig,Ldap,Cas,Jasig,我安装了jasig 3.4.7,启用了OpenLDAP和ssl。我可以通过CAS登录到LDAP中创建的帐户:很好 现在我需要通过管理界面声明服务:我意识到我没有“管理员”帐户。所以我试着给我的用户添加一个组“ADMIN”。我的第一个问题:这是正确的方法吗 我以这种方式声明了contextSource: <bean id="contextSource" class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource
<bean id="contextSource" class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
我需要什么才能检索我的用户管理组。我试过:
<bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
<constructor-arg ref="contextSource"/>
<constructor-arg value="ou=Groups"/>
<property name="groupRoleAttribute" value="cn"/>
<property name="groupSearchFilter" value="(uniqueMember={0})" />
</bean>
但是DefaultLdapAuthoritiesPopulator与jasig AuthenticatedLdapContextSource不兼容
我应该用什么豆子来代替。我见过一些人不使用jasig上下文源,而是使用默认的spring org.springframework.ldap.core.support.LdapContextSource。对吗?会有帮助吗
谢谢,我切换到3.5.2,使用org.springframework.ldap.core.support.LdapContextSource而不是org.jasig.cas.adapters.ldap.util.AuthenticatedLdapContextSource,因为它不再是3.5.2版的一部分。