본문 바로가기
etc

Exchange 2013 & Lync 2013 Intergrating 연계 가이드

by (주)엠플 2013. 2. 27.
Integrating Lync Server 2013 & Exchange Server 2013 OWA

On Exchange Server 2013
Get the Autodiscover URI using this comand in Exchange Management Shell:
Get-ClientAccessServer | fl fqdn, AutodiscoverServiceInternalURI
You can set the Autodiscover URI using this command:
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri "https://autodiscover.chahla.local/autodiscover/autodiscover.xml"
In my Case: https://autodiscover.chahla.local/autodiscover/autodiscover.xml
clip_image001
On Lync Server 2013
Get the Site name and the Pool FQDN using this comand in Lync Management Shell:
Get-Cspool | where-object {$_.services –like “*UserServer*”} | fl site, fqdn
In my Case: Site is Jeddah and Pool FQDN is Pool01.chahla.local
clip_image002
Now we need to access Autodiscover and the Pool from both servers (Exchange & Lync) thru a browser and make sure that we don’t have any certificate issues or warnings.
From Exchange Server: type the URL then enter your credentials.
clip_image003
it should look like this, notice that there is no certificate warnings.
clip_image004
- The same for pool01.
clip_image005
From Lync Server: type the URL then enter your credentials.
clip_image003[1]
clip_image004[1]
clip_image005[1]
Back to Exchange Server:
Configuring an On-Premises Partner Application for Microsoft Lync Server 2013
Type the below commands in Exchange Management Shell:
cd $exscripts
.\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl "https://pool01.chahla.local/metadata/json/1" -ApplicationType Lync
make sure you put your pool fqdn.
Source: http://technet.microsoft.com/en-us/library/jj204975.aspx
clip_image006
then do an  iisreset
clip_image007
Determine the Certificate Thumbprint
Get-ExchangeCertificate | where-object {$_.services -like "*iis*" } | fl subject, issuer, services, thumbprint
clip_image008
My Certificate thumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9
clip_image009
Now assign the pool name and the certificate thumbprint to OWAVirtualDirectory
Get-OwaVirtualDirectory -ShowBackEndVirtualDirectories -server ex2013-01.chahla.local | where { $_.WebSite -eq `Exchange Back End' } | Set-OwaVirtualDirectory -InstantMessagingEnabled $true -InstantMessagingType OCS -InstantMessagingCertificateThumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9 -InstantMessagingServerName pool01.chahla.local
clip_image010
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -InstantMessagingEnabled $true -InstantMessagingType OCS
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
Now we need to edit web.config file of OWA
Open
C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa
Edit web.config with Notepad
Add the below two keys in the <appSettings> part
<add key="IMCertificateThumbprint" value="7D40811E599C1CF8A63770D96D17EC31FB395BE9" />
<add key="IMServerName" value="pool01.chahla.local" />
clip_image011
substitute your thumbprint and pool fqdn.
Then recycle the IIS pool, using this command
C:\Windows\System32\Inetsrv\Appcmd.exe recycle apppool /apppool.name:"MSExchangeOWAAppPool"
clip_image012
Finished from Exchange Server part, now on Lync Server.
We need to create a Partner Application, Trusted Application Pool and a Trusted Application.
Partner Application:
New-CsPartnerApplication -identity Exchange -ApplicationTrustLevel Full -MetadataUrl https://autodiscover.chahla.local/autodiscover/metadata/json/1
clip_image013
Trusted Application Pool:
New-CsTrustedApplicationPool -Identity ex2013-01.chahla.local -Registrar pool01.chahla.local -Site Jeddah -RequiresReplication $False
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
clip_image014
Trusted Application:
New-CsTrustedApplication -ApplicationId OutlookWebAccess -TrustedApplicationPoolFqdn ex2013-01.chahla.local -Port 5199
clip_image015
Then, Enable-Cstopology for the settings to be published.
clip_image016
And we are finished, now we can test it by signing in to OWA and then Sign in to IM from inside OWA.
clip_image017
- Sign in to IM.
clip_image018
clip_image019
- Looks nice.
clip_image020
Test IM from another user
clip_image021
clip_image022
1 New message pops up, accept and start the chat session.
clip_image023
clip_image024
clip_image025
clip_image026
Done.


clip_image027

이규호 (Lee Kyu ho)

㈜엠플 | 컨설팅사업부 | 과장

T.02-501-0223 | D. 070-8786-0486 | F.02-6937-0223 | H. 017-717-0295 | E. khlee@impl.co.kr

댓글