前两篇介绍的是关于Exchange 与 Lync 之间的配制关系,这一篇介绍关于Lync、Exchange 与 SharePoint 之间建立信任关系。

首先要创建基于SSL的SharePoint Application,端口443,同时还要通过CA申请证书,否则在创建信任关系时,会出现错误。

Exchange 2013 、Lync 2013、SharePoint 2013   三

第二 申请证书并导入

Exchange 2013 、Lync 2013、SharePoint 2013   三  Exchange 2013 、Lync 2013、SharePoint 2013   三 

创建成功后,会生成一个txt 编码,之后根据生成的 txt申请证书,参考    ,导入成功后配制证书

Exchange 2013 、Lync 2013、SharePoint 2013   三   Exchange 2013 、Lync 2013、SharePoint 2013   三

创建PowerShell 脚本,建立信任关系

$shp = Get-CsPartnerApplication microsoft.sharepoint -ErrorAction SilentlyContinue
        
if ($shp -eq $null)
   {
      New-CsPartnerApplication -Identity microsoft.sharepoint -MetadataUrl https://lyncsp.t.com.cn/_layouts/15/metadata/json/1 -ApplicationTrustLevel Full 
    }
else
    {
       if ($shp.ApplicationIdentifier -ne "00000003-0000-0ff1-ce00-000000000000")
          {
             Remove-CsPartnerApplication microsoft.sharepoint
  
             New-CsPartnerApplication -Identity microsoft.sharepoint -MetadataUrl https://lyncsp.t.com.cn/_layouts/15/metadata/json/1  -ApplicationTrustLevel Full 
           }
        else
           {
             Set-CsPartnerApplication -Identity microsoft.sharepoint -ApplicationTrustLevel Full 
            }
   }

Set-CsOAuthConfiguration -ServiceName 00000004-0000-0ff1-ce00-000000000000

-MetadataUrl https://lyncsp.t.com.cn/_layouts/15/metadata/json/1  /_layouts/15/metadata/json/1 是固定的不能修改。

SharePoint 2013 引入了电子数据中心,好像很不错的,有时间可以了解一下

http://technet.microsoft.com/zh-cn/sharepoint/jj650012.aspx

 Exchange 2013 、Lync 2013、SharePoint 2013   三

 Exchange 与 SharePoint 建立信任关系

 创建 TokenIssuer

New-SPTrustedSecurityTokenIssuer –MetadataEndpoint "https://Ex2013.t.com.cn/autodiscover/metadata/json/1" –Name "Ex2013"

配置 SharePoint 2013 服务器权限

$Snapin = get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
if($Snapin -eq $null){
    Write-host "Loading SharePoint Powershell Snapin"
    Add-PSSnapin "Microsoft.SharePoint.Powershell"
}
$exchange=Get-SPTrustedSecurityTokenIssuer
$app=Get-SPAppPrincipal -Site https://elecdata.t.com.cn -NameIdentifier $exchange.NameId
$site=Get-SPSite https://elecdata.t.com.cn
Set-SPAppPrincipalPermission –AppPrincipal $app –Site $site.RootWeb –Scope sitesubscription –Right fullcontrol -EnableAppOnlyPolicy

在 Exchange 服务器上执行如下命令

cd c:\'Program Files'\Microsoft\'Exchange Server'\V15\Scripts
.\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl https://elecdata.t.com.cn/_layouts/15/metadata/json/1 -ApplicationType SharePoint

Exchange 2013 、Lync 2013、SharePoint 2013   三

 参考:

http://technet.microsoft.com/zh-cn/library/jj655399.aspx

http://technet.microsoft.com/ZH-CN/library/jj204975.aspx

 

 

 

 

 

相关文章:

  • 2021-04-06
  • 2021-06-11
  • 2021-09-19
  • 2021-12-02
  • 2021-07-12
  • 2021-07-20
  • 2021-07-16
猜你喜欢
  • 2021-06-13
  • 2021-07-10
  • 2021-06-25
  • 2021-12-31
  • 2022-12-23
  • 2021-09-15
  • 2021-08-30
相关资源
相似解决方案