IIS Not using anonymous impersonation

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

  1. #1

    Default IIS Not using anonymous impersonation

    Hi,

    I havea web app that has anonymous accesss enabled. I have specified that
    IIS should have the credentials of a user in the active directory. This
    user has rights to my SQL Server database.

    In my web.config file I have impersonate=true set.

    However when I try to access my website an error is produced. On checking my
    error log it shows that it failed due to the fact that the user trying to
    acccess the database has no rights. Instead of using the user specified in
    IIS it seems IIS is using the domain and username of the client, not what I
    want.

    How do I get IIS to use the user specified in the Directory Security tab of
    the web app's properties in IIS?

    I have anonymous access ticked and Integrated authentication ticked (without
    the second no access at all is allowed).

    TIA

    MattC


    MattC Guest

  2. Similar Questions and Discussions

    1. anonymous surf
      Hello, i'd like to create a website which could permit me to surf anonymously. As a result, when i will connect to my website it would browse...
    2. ASP.NET Anonymous Impersonation
      Hi, When you impersonate with anonymous security what is suppose to happen (IIS5 platform). Is it the aspnet_wp.exe process runs under the...
    3. anonymous logon
      I have aproblem. I develop my asp.net site at my pc (named PCMANOS)(running IIS) and I have the SQL Server at another pc (named ATHDC). I've...
    4. How do I log onto anonymous ftp ?
      Hello I have logged onto ftps before, but never an anonymous one. I need to log into ftp://archive.progeny.com/ I can view the files with...
    5. anonymous classes
      Hi, Could someone please explain to me the concept of an anonymous class? I'm talking about this construct: class << Foo ... end
  3. #2

    Default Re: IIS Not using anonymous impersonation

    On Tue, 4 Jan 2005 09:10:45 -0000, "MattC" <m@m.com> wrote:

    ¤ Hi,
    ¤
    ¤ I havea web app that has anonymous accesss enabled. I have specified that
    ¤ IIS should have the credentials of a user in the active directory. This
    ¤ user has rights to my SQL Server database.
    ¤
    ¤ In my web.config file I have impersonate=true set.
    ¤
    ¤ However when I try to access my website an error is produced. On checking my
    ¤ error log it shows that it failed due to the fact that the user trying to
    ¤ acccess the database has no rights. Instead of using the user specified in
    ¤ IIS it seems IIS is using the domain and username of the client, not what I
    ¤ want.
    ¤
    ¤ How do I get IIS to use the user specified in the Directory Security tab of
    ¤ the web app's properties in IIS?
    ¤
    ¤ I have anonymous access ticked and Integrated authentication ticked (without
    ¤ the second no access at all is allowed).

    I think what's happening is that Integrated authentication is being used because Anonymous
    authentication is being denied access to a resource. You need to set up NTFS file permissions
    correctly for the Anonymous account that you are attempting to impersonate.

    The fact that you're being denied access when using Anonymous access exclusively would indicate that
    the Anonymous account does not have sufficient permissions to access the web application resources.


    Paul ~~~ [email]pclement@ameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

  4. #3

    Default Re: IIS Not using anonymous impersonation

    Paul,

    Spot on. Somehow my application's user account password was reset, i didn't
    realise that the the failover for access denied is to use Integrated
    authentication, makes sense now that I think of it.

    Thanks for your time

    MattC

    "Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message
    news:sihlt0p27u9cfg8557jdpu09ogsvgu128b@4ax.com...
    > On Tue, 4 Jan 2005 09:10:45 -0000, "MattC" <m@m.com> wrote:
    >
    > ¤ Hi,
    > ¤
    > ¤ I havea web app that has anonymous accesss enabled. I have specified
    > that
    > ¤ IIS should have the credentials of a user in the active directory. This
    > ¤ user has rights to my SQL Server database.
    > ¤
    > ¤ In my web.config file I have impersonate=true set.
    > ¤
    > ¤ However when I try to access my website an error is produced. On
    > checking my
    > ¤ error log it shows that it failed due to the fact that the user trying
    > to
    > ¤ acccess the database has no rights. Instead of using the user specified
    > in
    > ¤ IIS it seems IIS is using the domain and username of the client, not
    > what I
    > ¤ want.
    > ¤
    > ¤ How do I get IIS to use the user specified in the Directory Security tab
    > of
    > ¤ the web app's properties in IIS?
    > ¤
    > ¤ I have anonymous access ticked and Integrated authentication ticked
    > (without
    > ¤ the second no access at all is allowed).
    >
    > I think what's happening is that Integrated authentication is being used
    > because Anonymous
    > authentication is being denied access to a resource. You need to set up
    > NTFS file permissions
    > correctly for the Anonymous account that you are attempting to
    > impersonate.
    >
    > The fact that you're being denied access when using Anonymous access
    > exclusively would indicate that
    > the Anonymous account does not have sufficient permissions to access the
    > web application resources.
    >
    >
    > Paul ~~~ [email]pclement@ameritech.net[/email]
    > Microsoft MVP (Visual Basic)

    MattC 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