CAS 4.2获取LDAP属性
我使用以下配置成功获取LDAP属性值,我可以在日志文件中看到这些值。
现在我该如何将这些属性发送给客户端?
这是我的deployerConfigContext.xml中的默认attributeRepository:
memberOf faculty staff org
有没有办法用principalAttributeMap填充attributeRepository?
当我从deployerConfigContext.xml中删除attributeRepository时抛出exception。
根据此文档https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html,LdapAuthenticationHandler能够独立解析和检索主要属性,而无需额外的主体解析器机制。 如果是这样,我们如何将这些属性返回给客户?
根据此文档https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html ,
如果您决定让身份validation处理程序检索属性而不是单独的主体解析程序,则需要确保链接的解析程序处于非活动状态:
...
进行此更改后,它开始工作。