반응형

 

Lync Server 2013, Exchange Server 2013 때도 통합 작업을 진행한적이 있지만 별도의 포스팅을 하지는 않았습니다.

이번에는 Skype for Business Server 2015, Exchange Server 2016 IM 통합을 포스팅하겠습니다.

 

Integrate Exchange Server 2016, Skype for Business Server 2016 자료를 찾아보면, 테크넷에서도 여러 개의 자료가 있습니다.

특히 자료들이 헷갈렸습니다.

Integrate Skype for Business Server 2015 and Microsoft Outlook Web App, Configure instant messaging integration with Outlook on the web in Exchange 2016

Integrate Skype for Business Server 2015 and Microsoft Outlook Web App 자료에서 다음과 같이 안내 사항이 있습니다.

 

Exchange Server 2016 경우 다음 단계를 무시할 있다고 나와 있는데, 어디서 부터 어디까지 Exchange Server 2016 해당하는지 구분점이 애매했습니다. 결론적으로 위의 instead of 의미는 아래부분에 해당하는 것으로 보입니다.

 

그래서 제가 진행한 Step 일단 아래의 자료를 먼저 진행하고,

 

Plan to integrate Skype for Business and Exchange

https://docs.microsoft.com/en-us/skypeforbusiness/plan-your-deployment/integrate-with-exchange/integrate-with-exchange

Configure instant messaging integration with Outlook on the web in Exchange 2016

 

아래의 자료의 순서에서 IM 통합에 필요한 부분만 진행하였습니다.

Integrate Skype for Business Server 2015 with Exchange Server

https://docs.microsoft.com/en-us/skypeforbusiness/deploy/integrate-with-exchange-server/integrate-with-exchange-server

 

 

[단계1] Autodiscover 설정

What do you need to know before you begin?

Exchange and Skype for Business integration requires server certificates that are trusted by all of the servers involved. The procedures in this topic assume that you already have the required certificates. For more information, see Plan to integrate Skype for Business Server 2015 and Exchange.

 

Plan to integrate Skype for Business and Exchange

https://docs.microsoft.com/en-us/skypeforbusiness/plan-your-deployment/integrate-with-exchange/integrate-with-exchange

 

The autodiscover service must be configured before you can integrate Skype for Business Server 2015 and Exchange Server.

You can verify whether or not the autodiscover service has been configured by running the following command from the Exchange Server Management Shell and checking the value of the AutoDiscoverServiceInternalUri property:

  • Autodiscover Internal URL Check

 

Get-ClientAccessServer | Select-Object Name, AutoDiscoverServiceInternalUri | Format-List

 

Example) https://autodiscover.litwareinc.com/autodiscover/autodiscover.xml

  • 기술자료에서 일반적인 uri 예시

 

아래와 같이 명령어를 진행하여 변경하였습니다.

Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri "https://autodiscover.limcm.com/autodiscover/autodiscover.xml"

You must then modify the Skype for Business Server OAuth configuration settings;

  • Skype for business Management Shell 에서 다음과 같이 진행합니다.

 

Set-CsOAuthConfiguration -Identity global -ExchangeAutodiscoverUrl "https://autodiscover.limcm.com/autodiscover/autodiscover.svc"

 

Get-CsOAuthConfiguration 으로 확인

 

[단계2] Configure instant messaging integration with Outlook on the web in Exchange 2016

아래의 링크를 참고하여 진행

https://technet.microsoft.com/en-us/library/mt607043(v=exchg.160).aspx

 

Step 1: Specify the IM server and IM certificate thumbprint

Exchange Management Shell 에서 다음과 같이 명령어를 입력합니다.

New-SettingOverride -Name "<UniqueOverrideName>" -Component OwaServer -Section IMSettings -Parameters @("IMServerName=<Skype server/pool  name>","IMCertificateThumbprint=<Certificate Thumbprint>") -Reason "<DescriptiveReason>" [-Server <ServerName>]

 

제 경우에는 Exchange 와 Skype Server 인증서가 같았습니다.

Exchange Management Shell 에서 인증서 Thumbprint 값을 확인합니다.

Get-ExchangeCertificate

 

제경우에는 Enterprise Edition 이기 때문에 Pool 지정하였습니다.

New-SettingOverride -Name "IM Override"  -Component OwaServer -Section IMSettings -Parameters @("IMServerName=pool.limcm.com","IMCertificateThumbprint=28FA231D69D2BB3F3AE02D27F0E34574608DD91D") -Reason "Configure IM"

 

 

 

Step 2: Refresh the IM settings on the Exchange server

Use the following syntax in the Exchange Management Shell to refresh the IM settings on the server. You need to do this on every Exchange 2016 server that's used for Outlook on the web.

  • 다음 명령어를 모든 Exchange Server 적용합니다.

 

Get-ExchangeDiagnosticInfo -Server ex0 -Process Microsoft.Exchange.Directory.TopologyService -Component VariantConfiguration -Argument Refresh

Get-ExchangeDiagnosticInfo -Server ex1 -Process Microsoft.Exchange.Directory.TopologyService -Component VariantConfiguration -Argument Refresh

 

Step 3: Restart the Outlook on the web web pool on the Exchange server

Run the following command in the Exchange Management Shell or in Windows PowerShell on the server. You need to do this on every Exchange 2016 server that's used for Outlook on the web.

  • 다음 명령어를 모든 Exchange Server 진행합니다.

 

Restart-WebAppPool MSExchangeOWAAppPool

적용 확인

How do you know this worked?

You'll know that you've successfully configured IM integration with Outlook on the web when the error message goes away, and clients are able to sign in to IM.

To verify the values of the IMServerName and IMCertificateThumbprint properties on an Exchange server, replace <ServerName> with the name of the server (not the FQDN), and run the following command:

 

다음 명령어를 진행합니다.

 

[xml]$diag=Get-ExchangeDiagnosticInfo -Server ex1 -Process MSExchangeMailboxAssistants -Component VariantConfiguration -Argument "Config,Component=OwaServer"; $diag.Diagnostics.Components.VariantConfiguration.Configuration.OwaServer.IMSettings

 

[단계3]Configure partner applications in Skype for Business Server 2015 and Exchange Server

https://docs.microsoft.com/en-us/skypeforbusiness/deploy/integrate-with-exchange-server/configure-partner-applications

 

In order to set up server-to-server authentication between Skype for Business Server and Exchange Server you must do two things: 1) you must assign the appropriate certificates to each server; and, 2) you must configure each server to be a partner application of the other server: that means you must configure Skype for Business Server 2015 to be a partner application for Exchange Server, and you must configure Exchange Server to be a partner application for Skype for Business Server 2015.

 

Skype for Business Server와 Exchange Server간에 서버 간 인증을 설정하려면 다음 두 가지 작업을 수행해야합니다. 1) 각 서버에 적절한 인증서를 할당해야합니다. 2) 각 서버를 다른 서버의 파트너 응용 프로그램으로 구성해야합니다. 즉, Skype for Business Server 2015를 Exchange Server의 파트너 응용 프로그램으로 구성해야하며 Exchange Server를 다음과 같은 파트너 응용 프로그램으로 구성해야합니다.

 

Step1. Configuring Skype for Business Server to be a Partner Application for Exchange Server

Skype for business Server 2015 Exchange Server 2016 Partner application 구성하기 위해서는 Exchange Server 있는 Configure-EnterprisePartnerApplication.ps1 스크립트를 Powershell 실행합니다. 이 스크립트를 실행하려면 Skype for Business Server 인증 메타 데이터 문서의 URL을 제공해야합니다. 일반적으로 Skype for Business Server 2015 풀의 정규화 된 도메인 이름 다음에 / metadata / json / 1 접미사가옵니다.

https://skypepool.contoso.com/metadata/json/1

 

Exchange Management Shell 에서 아래와 같이 명령어를 입력합니다.

CD "C:\Program Files\Microsoft\Exchange Server\V15\Scripts"

.\Configure-EnterprisePartnerApplication.ps1 -AuthMetaDataUrl 'https://pool.limcm.com/metadata/json/1' -ApplicationType Lync

 

Iisreset 진행합니다

 

Step2. Configuring Exchange Server to be a Partner Application for Skype for Business Server

이번에는 반대로 Exchange Server 2016 Skype for business Server 2015 Partner Application 으로 구성해보겠습니다.

Exchange Metadata Url 다음과 같습니다.

https://autodiscover.contoso.com/autodiscover/metadata/json/1

New-CsPartnerApplication cmdlet 으로 진행합니다.

 

New-CsPartnerApplication -Identity Exchange -ApplicationTrustLevel Full -MetadataUrl "https://autodiscover.limcm.com/autodiscover/metadata/json/1"

 

아래와 같이 테스트를 진행합니다.

Test-CsExStorageConnectivity -SipUri User@contoso.com

 

[단계3] Enabling Instant Messaging on Outlook Web App.

https://technet.microsoft.com/en-us/library/jj688055.aspx

 

Step1. Creating a Trusted Application Pool for Outlook Web App

 

Skype for Business 에서 SiteId 확인

Get-CsSite | Select-Object DisplayName, SiteID

 

If these two services are running on separate computers then, after you have verified that the Unified Communications Managed API 4.0 Runtime has been installed, you must create a Skype for Business Server trusted application pool and a trusted application associated with Outlook Web App; that will add the server to the Known Servers List. To do that, first run a command similar to this from within the Skype for Business Server Management Shell:

 

이 두 서비스가 별도의 컴퓨터에서 실행중인 경우 Unified Communications Managed API 4.0 런타임이 설치되어 있는지 확인한 후 Skype for Business Server 신뢰할 수있는 응용 프로그램 풀과 Outlook Web App와 연결된 신뢰할 수있는 응용 프로그램을 만들어야합니다. 그러면 알려진 서버 목록에 서버가 추가됩니다. 이를 위해 먼저 Skype for Business Server 관리 셸에서 다음과 유사한 명령을 실행하십시오.

 

Skype for Business Management Shell 에서 다음 명령어를 진행합니다.

New-CsTrustedApplicationPool -Identity mail.limcm.com -Registrar pool.limcm.com -Site 1 -RequiresReplication $False

 

-Identity mail.limcm.com -> OWA 도메인

-Registrar pool.limcm.com -> FE Pool

-Site 1 -> SiteID

 

Applicatoin ID 포트 지정

New-CsTrustedApplication -ApplicationId OutlookWebApp -TrustedApplicationPoolFqdn mail.limcm.com -Port 5199

Skype for Business Server 토폴로지에 대한 변경 사항을 활성화

Enable-CsTopology

 

Topology Builder 에서 확인

 

Control Panel 에서 확인

 

Step2. Outlook Web App에서 IM 활성화 사서함 정책 구성

With Skype for Business Server correctly configured you can then begin to configure Outlook Web App. The first step in that process is to enable instant messaging on all your Outlook Web App virtual directories on your front end servers. (There is no need to enable instant messaging for the virtual directories on your backend servers. In fact, it is recommended that you do not enable instant messaging on your backend servers.) Instant messaging can be enabled on the client access servers by running the following command from within the Exchange Management Shell:

 

Skype for Business Server를 올바르게 구성하면 Outlook Web App 구성을 시작할 수 있습니다. 이 프로세스의 첫 번째 단계는 프런트 엔드 서버의 모든 Outlook Web App 가상 디렉터리에서 인스턴트 메시징을 사용하도록 설정하는 것입니다. 백엔드 서버의 가상 디렉터리에 인스턴트 메시징을 사용할 필요가 없으므로 실제로 백 엔드 서버에서 인스턴트 메시징을 사용하지 않는 것이 좋습니다. 클라이언트 액세스 서버에서 인스턴트 메시징을 사용하도록 설정하려면 Exchange 관리 셸 내에서 다음 명령을 실행합니다.

 

Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -InstantMessagingEnabled $true -InstantMessagingType OCS

 

And this command enables instant messaging for all your Outlook Web App mailbox policies:

이 명령을 사용하면 모든 Outlook Web App 사서함 정책에 대해 인스턴트 메시징을 사용할 수 있습니다.

 

Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -InstantMessagingEnabled $true -InstantMessagingType OCS

 

[단계4] 적용 비교

적용전에는 아래와 같이 메신저 로그인 창이 나타나지 않으며

 

일정에서 Skype 모임에 대해 활성화되지 않았습니다.

 

적용후에는 OWA 에서 메신저 로그인 가능

 

로그인 Presence 변경 가능

 

연락처에서 메신저 보내기가 활성화 되었습니다. 또한 Presence 확인할 있습니다.

 

일정에서는 Skype 모임을 생성할 있게 되었습니다.

 

이것으로 IM, OWA 통합 포스팅은 마치겠습니다.

반응형

+ Recent posts