在上一篇中,我们已经完成了在ADFS中添加Exchange的信赖方信任,这一篇我们将接着来分享一下Exchange的声明规则配置。

首先,我们打开ADFS管理单元,然后展开ADFS-信任关系-信赖方信任,选中我们之前创建好的OWA的信赖方信任,然后单击右侧的编辑声明规则。

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第1张图片

在颁发转换规则中单击添加规则。

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第2张图片

在选择规则模板页,选择使用自定义规则发送声明。

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第3张图片

然后在配置规则页,按照以下设置:

声明名称:

ActiveDirectoryUserSID

自定义规则:

c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]

=> issue(store = "Active Directory", types = ("http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid"), query = ";objectSID;{0}", param = c.Value);

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第4张图片

再添加规则第二个规则

声明名称:

ActiveDirectoryUserSID

自定义规则:

c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]

=> issue(store = "Active Directory", types = ("http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid"), query = ";tokenGroups(SID);{0}", param = c.Value);

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第5张图片

再声明第三个规则:

规则名称:

ActiveDirectoryUPN

自定义规则:

c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]

=> issue(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"), query = ";userPrincipalName;{0}", param = c.Value);

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第6张图片

完成之后,我们在颁发转换规则页应该看到三个规则。

Exchange与ADFS单点登录 PART 6:Exchange声明规则配置_第7张图片

到此我们就完成了信赖方信任的转换规则配置,ADFS这边的配置就全部完成了。