Machine.Config -- ProcessModel vs Impersonation

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Machine.Config -- ProcessModel vs Impersonation

    What is the difference between using a username and password in the
    processmodel section vs using one in impersonation in the machine.config
    file? What are the advantages of each and what are the usages of each?

    Thanks for any replies,
    Scott


    Wm. Scott Miller Guest

  2. Similar Questions and Discussions

    1. Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
      I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now...
    2. <processModel>: Impersonation...?
      In the "Implementing Impersonation in an ASP.NET Application at the following URL: http://support.microsoft.com/?kbid=306158, MS suggested to...
    3. web.config vs machine.config ?
      1. I got this following error: ******************** Configuration Error Description: An error occurred during the processing of a...
    4. machine.config <processModel> setting question
      I'm having problems trying to do follow examples I've seen using the EventLog and Process classes. I'm getting security exceptions (access denied). ...
    5. server unavailable using username=machine instead of system in processmodel
      In order to try to get my app more locked down, I made the username=machine. It works fine on my computer, but when I put it on my test box, it blew...
  3. #2

    Default Re: Machine.Config -- ProcessModel vs Impersonation

    Hi,

    You do not get a choice between which to use. :-)

    If you configure impersonation, then that is the account that will be
    "impersonated" by ASP.NET for the purpose of accessing resources. Otherwise,
    it will use the process identity. The process identity is ASPNET for v1.0 on
    Windows 2000, and IWAM_<machinename> for v1.1 on Windows 2000, and the Web
    App Pool's identity on Windows 2003. If these defaults are fine, then there
    is no reason to change them.

    Cheers
    Ken


    "Wm. Scott Miller" <Scott.Miller@spam.killer.wvinsurance.gov> wrote in
    message news:%23vTV74lQEHA.2248@TK2MSFTNGP12.phx.gbl...
    : So which would be better to use for database access? Both work for what
    I'm
    : doing, but I'm concerned because I'm new to ASP.NET. Which is better for
    : this type of thing? What are the advantages and disadvanages of each one
    in
    : relation to database access and network share access etc? What I'm most
    : confused about is both appear to work for both of my needed tasks, so why
    : have two ways to do it? Are there real advantages and disadvantages to
    each
    : or are they equivalent?
    :
    : From what I understand, both would be of no consequence should the machine
    : become compromised, even when using the "secure" ASPNET_SETREG utility to
    : store the Identity information and the integrated IIS 6.0 worker process
    : username/password pair (or using the same utility for IIS 5.x in the
    : ProcessModel section of the machine.config). Reason is that these are
    : stored using encryption based on the machine. Once you are in the
    machine,
    : you can decrypt from the registry.
    :
    : So which one makes it most secure/more difficult to crack?
    :
    : Thanks for the reply!
    :
    : Scott
    :
    : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    : news:eGwMhqgQEHA.964@TK2MSFTNGP10.phx.gbl...
    : > ProcessModel is the identity of the process itself (eg the aspnetwp.exe
    : > process)
    : >
    : > Impersonation is the account that should be used (Impersonated) by
    ASPNET
    : to
    : > access resources (eg read an .aspx file off the hard disk)when requests
    : come
    : > in.
    : >
    : > Cheers
    : > Ken
    : >
    : > "Wm. Scott Miller" <Scott.Miller@spam.killer.wvinsurance.gov> wrote in
    : > message news:Onp53gaQEHA.640@TK2MSFTNGP09.phx.gbl...
    : > : What is the difference between using a username and password in the
    : > : processmodel section vs using one in impersonation in the
    machine.config
    : > : file? What are the advantages of each and what are the usages of
    each?
    : > :
    : > : Thanks for any replies,
    : > : Scott
    : > :
    : > :
    : >
    : >
    :
    :


    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139