UCPrimer
  • Tech Blog
  • About UCPrimer.com

Pre-Requisites for Integrating Lync2013 with Exchange2013

5/30/2014

0 Comments

 
Picture
So you've got a brand new Lync Server 2013 setup along with Exchange Server 2013 SP1. Apart from creating users and configuring Lync and Exchange specific features, you also want to integrate the two servers for many better-together features. Most commonly this will include:

1. Leveraging Microsoft Exchange Server 2013 Unified Messaging for  Microsoft Lync Server 2013 voicemail
2. Enabling the use of high-resolution photos in Microsoft Lync Server 2013
3. Configuring Microsoft Lync Server 2013 to use the unified contact store
4. Enabling Lync client features in Microsoft Outlook Web App 2013

Following the guidelines in TechNet are definitely useful but some essential steps are missing and since the information scattered around in different locations, this article provides 3 easy steps to get the pre-requisites configured correctly to prepare for configuring better-together features.

Step 1: Generate a new CA Certificate for Exchange
The default installation of Exchange automatically creates a self-signed certificate for Exchange services including IMAP,POP,IIS and SMTP. For Exchange UM to integrate properly with Lync we need to use a certificate issued by a CA that Lync trusts, which typically will be the enterprise CA that is part of the AD infrastructure. We can do this using the EAC under Servers->Certificates and click on the "New" button. This will bring up the new certificate request wizard. On the first screen select "Create a request for a certificate from a certification authority" and click next. Give the cert a friendly name and on the next screen do not use wildcard certificates as this may give problems when calling UM from Lync phone devices. Next store the certificate request on the CAS server. The next screen is important and will be highlighted here. Note that the SAN is automatically populated for accessing Exchange services from the Intranet but not external ones: 
Picture
If we intend to allow Exchange services to be available to users on external networks then we should edit each of the services (when accessed from the Internet) to include a SAN. This will typically be "mail.yourdomain.com" and subsequently configured in the Reverse Proxy for external user access. We can use the same SAN for all Exchange services and once complete click next to finish the wizard. This will save the certificate request to a file share which can then be submitted to the Enterprise CA to generate a certificate. Once you get the certificate back from the CA, return to the EAC and click on "Complete Pending Request" to import the certificate back to Exchange. Finally assign all Exchange services including UM to use this certificate:
Picture
Assigning the certificate to Exchange UM and UM call Router services requires some additional steps. Both services by default uses a startup mode of TCP which causes the certificate assignment to fail. First stop the Exchange UM and UM Call Router services, and then configure both to use TLS startup on the EAC as shown below. Then assign both services to use the new certificate and start the services.
Picture
Step 2: Set the Autodiscover Internal URI
By default, Exchange will set the Autodiscover Internal URI to be the https//:<FQDN of Exchange CAS>/Autodiscover/Autodiscover.xml. In some cases this URI may even be blank. Either way this will cause various issues when configuring Exchange and Lync to be Partner Applications and so its highly recommended to set the URI to https://autodiscover.<yourdomain>/Autodiscover/Autodiscover.xml using the Exchange Management Shell as show below. Of course we must also not forget to create the autodiscover A record in the DNS.
Picture
Step 3: Configure Partner Applications for Lync and Exchange
Now we're ready to configure Lync as a Partner Application for Exchange using Windows Powershell but first we should check that the URL for Lync Server authentication metadata document for is working. To do this simply open a browser on the Exchange server and navigate to https://<FQDN of Lync Server/metadata/json/1 and see if IE prompts you to open or save a file. If it does then it's working correclly. Next, Exchange provides a script to simply configuration of the Partner Application at C:\Program Files\Microsoft\Exchange Server\V15\Scripts. From that directory run the  Configure-EnterprisePartnerApplication.ps1 script with the Lync metadata doc URL as shown below. Then restart IIS and this step will be complete.
Picture
Next we do the same on the Lync server side ie configure Exchange as a Partner Application for Lync. Again before doing so it's good to verify that the Exchange metadata document URL is working. Simply open IE on the Lync server and navigate to https://autodiscover.<yourdomain>/autodiscover/autodiscover.svc. A prompt should appear asking for credentials and after entering that a WSDL page should be shown. Next we open the Lync Management Shell and run the Set-CsOAuthConfiguration command as shown below. If there are no errors returned then we are good to go
Picture
Conclusion
With Exchange and Lync now configured as Partner Applications for each other, we can proceed to configure all the better together features mentioned in the beginning of this article. Each feature can be configured independently and the steps are provided in TechNet and shown below for reference:

Configuring Microsoft Lync Server 2013 to use the unified contact store
Configuring the use of high-resolution photos in Microsoft Lync Server 2013
Configuring Microsoft Exchange Server 2013 Unified Messaging for Microsoft Lync Server 2013 voicemail
Integrating Microsoft Lync Server 2013 and Microsoft Outlook Web App 2013
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Picture
    Picture

    Important Links

    Microsoft Teams Docs
    Microsoft Learn

    ​Microsoft MVP Blogs

    Michael Tressler’s Blog
    Michael’s MTR Quick Tip Videos
    Jimmy Vaughan’s Blog
    Jeff Schertz
    Adam Jacobs
    James Cussen
    ​Damien Margaritis

    Archives

    September 2022
    August 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    June 2021
    April 2021
    March 2021
    December 2020
    October 2020
    September 2020
    August 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    August 2017
    July 2017
    April 2017
    March 2017
    February 2017
    January 2017
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    January 2016
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    September 2012
    August 2012

    Categories

    All
    Edge
    Exchange 2013
    Hybrid
    Lpe
    Lync 2010
    Lync 2013
    Mobility
    Oauth
    Office365
    Polycom
    Ucs

    RSS Feed

    This website uses marketing and tracking technologies. Opting out of this will opt you out of all cookies, except for those needed to run the website. Note that some products may not work as well without tracking cookies.

    Opt Out of Cookies