Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My production environment is a load-balanced (and under heavy load) on a very large corporate Active Directory network. The following took a lot of testing to finally nail down settings that work. </p> <ul> <li>I also run on Windows 2008 Server R2</li> <li>My web services are in ASP.NET in IIS. For authentication I enabled "Windows Auth" and "ASP.NET Impersonation". Kernel mode is disabled and provider is "Negotiate:Kerboros"</li> <li>SPNS and <a href="http://technet.microsoft.com/en-us/library/cc739764%28v=ws.10%29.aspx" rel="nofollow">Trusted Delegation</a> are setup for an AD account. My AD account looks like sys_myservice (sys_ is just a naming convention at my company)</li> <li>The Application Pool identity is set to use the sys_myservice</li> <li>After you make all these changes in your dev env, restart the entire server. For some odd reason this is always necessary when we bring on new servers and configure them.</li> </ul> <p>With this setup my web services access SSAS, SQL Server, and more that use Windows Kerboros auth and all queries are performed correctly under the user's credentials.</p> <p>The difference in my setup from yours is ASP.NET Impersonation is enabled at the IIS level. I had trouble doing the impersonation in code which is what you are trying to do. If you get code-level impersonation to work with your workflow I would be really interested in seeing you post an update.</p> <p>Forgot to mention. My services are in a MVC application, I apply a global filter to all Action methods to force the application to authenticate all connections.</p> <pre><code> public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); filters.Add(new System.Web.Mvc.AuthorizeAttribute()); } </code></pre> <p>and in my web.config system.web section</p> <pre><code>&lt;authentication mode="Windows" /&gt; &lt;identity impersonate="true" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload