在ADFS 3.0中将组名称作为声明发送

时间:2017-02-15 09:21:35

标签: active-directory ldap claims adfs3.0

我需要在ADFS 3.0中为RP添加声明规则,以便在组名称为A,B,C时发出添加用户的所有组名称。如何实现此目的?截至目前,我正在使用LDAP属性Token-Groups - Unqualified Names,它将提供他所属的所有组名。

1 个答案:

答案 0 :(得分:0)

使用正则表达式过滤组。

c:[Type ==" http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname",Issuer ==" AD AUTHORITY"]  => add(store =" Active Directory",types =(" http://claims/MyGroups"),query =&#34 ;; tokenGroups; {0}",param = c.Value);

然后像:

c:[Type ==" http://claims/MyGroups",Value =〜" ^(?i)A"]  =>问题(claim = c);

等等。