.NET, Integrated Windows Authentication, and more

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

  1. #1

    Default .NET, Integrated Windows Authentication, and more

    First of all, with identity impersonate = true, I still get this blasted error: Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    It seems like it simply will not send the domain username and password that I'm authenticated as! It is endlessly frustrating. I have the machine.config entries as follows:

    <identity impersonate="true" userName="" password=""/>

    and for the process part...

    userName="machine"
    password="AutoGenerate"

    My web.config is as follows:

    <configuration><system.web><compilation debug="true"/><customErrors mode="Off"/><authentication mode="Windows" /><identity impersonate="true"/></system.web></configuration>

    All I want to do is authenticate to the SQL server (which is not the same machine as the IIS box) using the domain username and password I'm signed on as. That way I can assign permissions and rights on the database side. This cannot be that hard. What am I missing?

    Thanks in advance.
    FuriousMojo Guest

  2. Similar Questions and Discussions

    1. CFSchedule with Integrated Windows Authentication
      I'm trying to schedule a task to run in CFSchedule ... when I allow anonymous access it runs fine, but when I force Integrated Windows...
    2. Integrated Windows Authentication, ASP.NET and FoxPro
      Hello, Since it is the first time I'm posting in these groups, I believe a (short) introduction of myself would not be a bad thing. I am...
    3. aspnet and windows integrated authentication, hot to log out?
      hi, i'm devoloping an intranet application based on ASP.NET and windows integrated authentication. how can i force the log out of a user to...
    4. Intranet and Integrated Windows Authentication
      Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation,...
    5. integrated Windows authentication
      Firstly, I'm running IIS 6.0 on Windows SErver 2003 that is also a DC. I have an asp page (default.asp) I am trying to access as my hom page for...
  3. #2

    Default RE: .NET, Integrated Windows Authentication, and more

    When you have impersonation set to true with no user name and password
    specified you will be impersonating the authenticated IIS user. This means
    that if you are using Anonymous authentication (this will always be used if
    it is checked in IIS...even if you have Windows Integrated checked) you
    will be running the thread as the IIS Anonymous user. Based on the
    information you provided, it looks like this is what is happening for you.
    A second choice would be to specify the user you want to impersonate, but
    there is an additional step needed in order to get this to work. You will
    have to add the ASPNET user to the policy called "Act as a part of the
    Operating System" and then refresh the policies on the machine.

    Here is an article that covers the three impersonation choices. There is
    only one of the three that can be done without the policy I mentioned above
    and it is simply <identity impersonate = "true">

    306158 INFO: Implementing Impersonation in an ASP.NET Application
    [url]http://support.microsoft.com/?id=306158[/url]

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Holly

    Holly Mazerolle 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