Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 247
Product BlueDragon
Category Administration, Installation, Security
Question How does IIS determine which account BlueDragon.NET requests run under?
Answer The account that BlueDragon.NET requests run under is determined by the following algorithm:

1) If web.config contains an <identity> element with the attribute impersonate set to "true" then BlueDragon.NET will run under the username specified in the <identity> element. If an empty string is specified for the username then BlueDragon.NET will run under the authenticated user for authenticated requests and under the anonymous user for unauthenticated requests.

2) If web.config doesn't contain an <identity> element and machine.config contains an <identity> element with the attribute impersonate set to "true" then BlueDragon.NET will run under the username specified in the <identity> element. If an empty string is specified for the username then BlueDragon.NET will run under the authenticated user for authenticated requests and under the anonymous user for unauthenticated requests.

3) If impersonation is disabled then:

  • with IIS 5 and earlier, BlueDragon.NET will run under the user specified in the <processModel> element of machine.config. The <processModel> element cannot appear in web.config.
  • with IIS 6, BlueDragon.NET will run under the application pool identity of the application pool it is configured to run under.
The following ASP.NET code can be used to determine which user ASP.NET requests are running under:

<%@ Page Language="vb" %>
<html>
<head>
    <title>Simple ASP.NET Page</title>
    <script runat="server">
    Sub SayHello()
        Response.Write( "Hello, " & System.Security.Principal.WindowsIdentity.GetCurrent().Name )
    End Sub
    </script>
</head>
<body>
<% SayHello %>
</body>
</html>



   
company media information terms of use privacy policy contact us