ASP.NET worker process context and SQL authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave Mehrtens

    #1

    ASP.NET worker process context and SQL authentication

    I am trying to configure my ASP.NET application and have come across
    something unexpected.

    First, I understand that all ASP.NET applications running on a single server
    will utilize a single aspnet_wp.exe process. And that this process, by
    default, runs under the context of the ASPNET username.

    I would rather use a trusted connection to connect to SQL Server to avoid
    having to put a username and password in a config file. However, if I use a
    trusted connection, all of my databases will have to be configured to use
    ASPNET as the user. Is this true.

    In another post, I read that the aspnet_wp.exe process would impersonate the
    caller? Is this IIS or the ISAPI filter? Is this possible? If so, then it
    would be possible to use a trusted connection to SQL and that user would be
    the user that is configured to run the IIS application, correct?

    Thank you for your help,

    Dave


Working...