<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>LyncInternals</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/lyncinternals/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/lyncinternals/feed.xml</link>
    <description>Blogs written by EMEA Lync Readiness Engineers</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:27:41 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Federating a sub-domain in Office 365</title>
      <link>https://docs.microsoft.com/archive/blogs/lyncinternals/federating-a-sub-domain-in-office-365</link>
      <pubDate>Thu, 19 Jul 2012 04:08:00 GMT</pubDate>
      <dc:creator><![CDATA[AlexBacanel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/lyncinternals/2012/07/19/federating-a-sub-domain-in-office-365/</guid>
      <description><![CDATA[&nbsp;Written By: Ervin Barabas (O365 Support Engineer)&nbsp;
&nbsp;
So I set up a local...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;Written By: Ervin Barabas (O365 Support Engineer)&nbsp;</p>
<p>&nbsp;</p>
<p>So I set up a local environment with an Active Directory ,DirSync, TMG (with proxy chaining) and federated a sub-domain with the cloud - the last one will be the focus of this post</p>
<p>The local environment consists of the following:</p>
<p>&nbsp;</p>
<p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Domain controller (contoso.com) with 5 users</p>
<p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sub-Domain controller (cont.contoso.com)with 5 users</p>
<p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TMG (with proxy chaining)</p>
<p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirSync</p>
<p>5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Client 1</p>
<p>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Client 2</p>
<p>&nbsp;</p>
<p>The plan was to have the sub-domain (cont.contoso.com) federated with the cloud and to keep using the domain (contoso.com) un-federated.</p>
<p>&nbsp;</p>
<p>In order to federate a domain, you will first have to deploy and configure <a href="http://onlinehelp.microsoft.com/en-us/office365-enterprises/ff652539.aspx">ADFS 2.0</a> and <a href="http://onlinehelp.microsoft.com/en-us/office365-enterprises/ff652543.aspx">DirSync</a>. After you have done this, you need to install the</p>
<p>Microsoft Online Services Module for PowerShell. You will need these cmdlets to connect to your online account and to convert your domain to a federated domain (you can find the installer here: <a href="http://go.microsoft.com/fwlink/?linkid=236345">32</a>/<a href="http://go.microsoft.com/fwlink/?linkid=236293">64</a>). I say convert, because I assume that you already added your domain to Office 365. When you convert a domain, automatically all users will become federated and will need to start logging in using their Active Directory credentials. Unfortunately the rollout of this feature cannot be performed in stages, therefore I advise you to do this during non-peak hours.</p>
<p>&nbsp;</p>
<p>The problem encountered here, was the following:</p>
<p>&nbsp;</p>
<p>I already added the vanity domain (contoso.com) to the cloud as well as the sub-domain (cont.contoso.com). When I ran the cmdlets to convert the sub-domain to a federated domain, I kept getting an error. Unfortunately I did not take a screenshot at that time and a repro would be too time consuming right now. Anyhow, the problem was that Office 365 does not allow you to federate&nbsp; a sub-domain if you also have the domain added in the cloud. If you federate a domain, all the sub-domains will inherit the federation. If you want to federate only the sub-domain, as it was in this case, you need to only have the sub-domain added to your tenant.&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p>Very important: Before converting a standard domain to single sign on, make sure that you have at least one global administrator in your Office 365 tenant set on the *.onmicrosoft.com domain . If you don't have one, create one right now. By having this backup administrator, you are sure you can still access your tenant, no matter what happens to your vanity domain.</p>
<p>&nbsp;</p>
<p>To convert a sub-domain to a SSO domain, you will have to do the following steps:</p>
<p>&nbsp;</p>
<p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open the Microsoft Online Services Module .</p>
<p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run <b>$cred=Get-Credential</b>. When the cmdlet prompts you for credentials, type your Office&nbsp;365 administration account credentials.</p>
<p></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/6242.Ad.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/6242.Ad.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/6242.Ad.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/6242.Ad.png" width="315" height="261" /></a></p>
<p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run <b>Connect-MsolService -Credential $cred</b>. This cmdlet connects you to Office&nbsp;365. Creating a context that connects you to Office&nbsp;365 is required before running any of the additional cmdlets installed by the tool.</p>
<p>$credCet&mdash;Credential cndlet Get&mdash;Credential at comnand pipeline position 1 Suppl9 values for the following paraneters Credential PS C:\windows\system32&gt; Connect&mdash;MsolService &mdash;Credential $cred PS C:\windows\system32&gt;" type="#_x0000_t75" o:spid="_x0000_i1026"&gt;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1586.CMD.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1586.CMD.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1586.CMD.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1586.CMD.png" width="513" height="83" /></a></p>
<p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run <b>Convert-MsolDomainToFederated -Sub-DomainName &lt;domain&gt;</b>, where &lt;domain&gt; is the domain to be converted. This cmdlet changes the sub-domain from standard authentication to single sign-on.</p>
<p>&nbsp;</p>
<p>&hellip;and make sure you have an active internet connection on the ADFS server. Without this, you will get an error in the MOSDAL report stating that the login token is not valid:</p>
<p>&nbsp;</p>
<p><i>The AD FS token received is not valid until: 17/07/2012 16:47:41.</i></p>
<p>&nbsp;</p>
<p>This is just one of the problems encountered while deploying a federated domain. I will post more on ADFS and SSO in the near future.</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Block Users from accessing Meetings using “corporate credentials” via Lync WebApp or Lync Attendee.</title>
      <link>https://docs.microsoft.com/archive/blogs/lyncinternals/block-users-from-accessing-meetings-using-corporate-credentials-via-lync-webapp-or-lync-attendee</link>
      <pubDate>Mon, 31 Oct 2011 07:18:00 GMT</pubDate>
      <dc:creator><![CDATA[AlexBacanel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/lyncinternals/2011/10/31/block-users-from-accessing-meetings-using-corporate-credentials-via-lync-webapp-or-lync-attendee/</guid>
      <description><![CDATA[So let&rsquo;s say that your security policy does not allow you to allow remote authenticated access...]]></description>
      <content:encoded><![CDATA[<p>So let&rsquo;s say that your security policy does not allow you to allow remote authenticated access to your internal environment or that you want to decrease the chances of a DOS Attack on your network but would still like to use Lync to host meetings for your external partners.</p>
<p>There are several options you can use to share meetings with your partners, Lync WebApp, Lync Attendee Client or Lync Client, all of these Clients included with your Lync Environment have by default the Option to <b>&ldquo;Join using your corporate credentials&rdquo; </b>and there is no one configuration option that you can select to block this, there are however a few configuration changes that you can undertake that will get you the hoped-for result.</p>
<p>Because there are 2 major Client Architectures, Lync WebApp, a web based client that uses the External Web Farm to connect you to your meeting and Lync Attendee and Lync Client that use the Lync Edge Server.</p>
<p>In the following we will discuss each in details.</p>
<h2>Lync WebApp</h2>
<p>In order to use the Lync WebApp to share meetings outside your network you will need to first deploy an Edge Server (used for Media Sharing) and a Reverse Proxy (Used for Publishing your External Web Farm). A step by step Deployment Guide for Reverse Proxy and Edge Server can be downloaded here</p>
<p><a href="http://www.microsoft.com/download/en/details.aspx?id=11379">http://www.microsoft.com/download/en/details.aspx?id=11379</a></p>
<p>After you have deployed the Edge Server and the Reverse Proxy and configured all your Firewall rules make sure everything is working as it should, at this stage you should be able to log on to meetings from outsideyou network using the &ldquo;Join as a guest&rdquo; and &ldquo;Join using your corporate credentials&rdquo; option.</p>
<p>If everything is working we need to focus our attention on the Reverse Proxy as we will need to somehow block the &ldquo;Join using your corporate credentials&rdquo; option before the credentials get to the Director or Front End Server.</p>
<p>In our Environment we used an ISA/TMG Firewall and Reverse Proxy but you may use any other Product you wish as long as it provides you with the needed configurations.</p>
<p>We noticed, in a ISA Firewall Log, that if you use the &ldquo;Join using your corporate credentials&rdquo; option in Lync WebApp and type in your Credentials, the Lync WebApp Client will attempt to use the following link to authenticate you <b>ttps://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth. </b></p>
<p>So we tried several authentication methods on the Lync Director but found that if we block all traffic to /WebTicket/* we lose all connectivity from LyncWebApp (even for &ldquo;Join as a guest&rdquo; users), so what we did was to create a second reverse proxy rule on our ISA/TMG Server to block just <b><a href="https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth">https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth</a> </b>but allow all other requests for <b>https://externalwebfarmfqdn/<br />WebTicket/WebTicketService.svc</b></p>
<p>On the ISA/TMG we just copied the external web farm rule created during our Edge Server Deployment (<a href="http://www.microsoft.com/download/en/details.aspx?id=11379">http://www.microsoft.com/download/en/details.aspx?id=11379</a>&nbsp;Page: 52) and added a Deny to the Name (just to make thing clear in the configuration).</p>
<p>We then set this second web publishing rule to a higher priority than the default rule so that ISA would check this rule first, and potentially block the traffic, and only then move to the second standard rule.</p>
<p>We ended up with 2 rules in our Reverse Proxy Configuration:</p>
<p>&nbsp;<br />&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1667.TMG.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1667.TMG.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1667.TMG.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1667.TMG.png" /></a><br />&nbsp;<br />&nbsp;<br />Now on the Deny Rule that you have just created go to Properties and the click the Action Tab, here select &ldquo;Deny&rdquo;. The move on to the &ldquo;Paths&rdquo; Tab and remove the /* (meaning everything) and replace it with<b> /WebTicket/WebTicketService.svc/Auth, </b>then just save the settings and you are done.</p>
<p>This would block all the requests for the URL <b><a href="https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth">https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth</a> </b>at Reverse Proxy level but will allow everything else to pass thru (as described in the Deployment Guide)</p>
<p>From a User&rsquo;s side the experience is the following:</p>
<p>When he clicks the meeting invite (i.e. meet.&lt;domain&gt;/username/meetingID) and he will use the LyncWebApp he will get a windows giving him the option to &ldquo;Join as a guest&rdquo; or &ldquo;Join using your corporate credentials&rdquo;, should he attempt to<br />type in his corporate credentials he will get an error saying <b>&ldquo;The user name or password you entered is incorrect&rdquo; </b>(this is because the rule we just created did not pass the credentials back to the server and blocked them on the Reverse proxy)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/4062.WebApp.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/4062.WebApp.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/4062.WebApp.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/4062.WebApp.png" width="399" height="849" /></a></p>
<p>&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<h2>Lync Attendee Client</h2>
<p>&nbsp;</p>
<p>Now that we have blocked the LyncWebApp let&rsquo;s check out what we can do with regard to the Lync Attendee client. As the Lync Attendee Client will use the Edge Server to connect and not the WebFarm the changes we did on the reverse proxy side will not influence the behavior of the Lync Attendee, &ldquo;Join using your corporate credentials&rdquo; option will still be available for your users at this stage using the Lync Attendee.</p>
<p>Depending on you environment and architecture you have several options here, you might chose to disallow meeting attendance using the Lync Attendee client or you may choose to block only the &ldquo;Join using your corporate credentials&rdquo; option.</p>
<p>Both methods have pro&rsquo;s and con&rsquo;s, so if you need to allow your users to have remote access via Lync Client then you will need to use the first option and block Lync Attendee altogether using the Client Version Policy. This is because the settings that we will use to block &ldquo;Join using your corporate credentials&rdquo; on the Lync Attendee Client will also impact the Lync Client.</p>
<p>If you just want to use your Edge Server to allow Partners to join as guests to meetings and are not interested in allowing your Internal Users any remote access to the Network or if you are using VPN for this then you can do the following:</p>
<p>1.&nbsp;Deploy Lync Server Director Role</p>
<p>The Lync Server Director Role is recommended not only as its primary role is to increase security and add an extra hop between external servers (EDGE) and Internal Lync Environment (FE POOL) but as in order to achieve the intended behavior we need to modify the security settings on the Lync Environment. With a Director in place we have the possibility to change these settings more granularly (i.e. only on connections coming from Edge) without changing the security setting on the internal pool or globally</p>
<p>Deploy the Lync Server Director Role as described in the Microsoft Lync Server 2010 Edge Deployment Guide (PG:35)</p>
<p>&nbsp;</p>
<p>&nbsp;2. In the Lync Topology Builder set the Director as the Next Hop for the Edge Server</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/0844.Topology.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/0844.Topology.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/0844.Topology.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/0844.Topology.png" /></a></p>
<p>3. After you have successfully deployed the Lync Director Role and have set the Edge Server to point to the Director using the &ldquo;Lync Server Control Panel&rdquo; go to the Security Page and select the Registrar TAB</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/8371.Panel.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/8371.Panel.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/8371.Panel.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/8371.Panel.png" /></a>&nbsp;</p>
<p>On the Registrar Tab Click New and from the drop down list select the Lync Director Server FQDN</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/8664.registrar.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/8664.registrar.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/8664.registrar.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/8664.registrar.png" /></a></p>
<ol></ol>
<p>4. On the New Registrar Security Provider list Disable Kerberos and NTLM and leave in only Certificate</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1145.Security.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1145.Security.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/1145.Security.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/1145.Security.png" /></a></p>
<p>&nbsp;</p>
<ol></ol>
<p>5. Save the Settings and wait for the changes to be replicated on all Servers</p>
<ol></ol>
<p>NOTE: By disabling Kerberos and NTLM and only allowing Certificate Based authentication the only method provided to the Lync Attendee Client when trying to log on with corporate credentials will be Certificate authentication using the URL <b><a href="https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth/">https://externalwebfarmfqdn/WebTicket/WebTicketService.svc/Auth/</a>. </b>Moreover the Lync Attendee Client will attempt to log on using Certificate (if one is present on the local computer in the user store) but will not attempt to request a new one if NTLM method is disabled on the registrant. Corporate Credentials entered in the Lync Attendee Client should never reach the Internal Servers in this configuration.</p>
<p>&nbsp;</p>
<p>From a User&rsquo;s side the experience is the following:</p>
<p>When he clicks the meeting invite (i.e. meet.&lt;domain&gt;/username/meetingID) and he will use the Lync Attendee Client he will get a window giving him the option to &ldquo;Join as a guest&rdquo; or &ldquo;Join using your corporate credentials&rdquo;, should he attempt to type in his corporate credentials he will get an error saying &ldquo;Cannot sign in to Lync Attendee&rdquo; (this is because in the security provider negotiation the Lync Attendee just got Certificate as the only possible Authentication Method and Lync Attendee client is unaware of this option )</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/3302.Attendee.png" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/3302.Attendee.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/91/06/3302.Attendee.png" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-06/3302.Attendee.png" /></a></p>
<p>&nbsp;</p>
<h1>Disclaimer:</h1>
<p>&nbsp;</p>
<p><b>Please Note that even though lots of different scenarios have been tested, like application and desktop sharing, PowerPoint Upload, Poll and Upload both from internal and from external, you may encounter problems in this configuration due to the fact that it is impossible to cover all the scenarios. </b></p>
<p><b>Should you at any stage have any issues regarding conferencing the Microsoft Support Engineer might ask you to modify the settings to a supported mode during the&nbsp;troubleshooting phases </b></p>]]></content:encoded>
    </item>
  </channel>
</rss>