title: web.config allow all users from a specific domain, but not another
body: <p>I have users from two different domains that can access the web site I am currently working on and I would like to only allow users from one of those domain to access the site. I've done some research and the only thing I was able to come up with is allowing users from a specific domain group, but not from an entire domain only.</p>
  
  <p>I've also come across this post that suggest to check the domain manually upon logon:</p>
  
  <p><a href="http://bytes.com/topic/asp-net/answers/343407-using-web-config-allow-access-domain-users-only" rel="noreferrer">http://bytes.com/topic/asp-net/answers/343407-using-web-config-allow-access-domain-users-only</a></p>
  
  <p>I've added this to the web.config, but it does not appear to be working:</p>
  
  <pre><code>&lt;authorization&gt;
    &lt;deny users="?"/&gt;
    &lt;allow users="FirstDomain\Domain Users"/&gt;
    &lt;deny users="SecondDomain\Domain Users" /&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>Thanks,</p>