Impersonation and delegation

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

  1. #1

    Default Impersonation and delegation

    I've read many messages and even more technotes, but I still can't get the
    following scenario to work:

    I have a Windows 2003 web server and a separate Windows 2000/SQL server,
    both in the same Active Directory on our LAN. I need to flow the user
    credentials from 2000/XP clients, to the web server, and then onto the SQL
    server.

    IIS is set to only allow Windows integrated authentication.

    My connection string is "workstation id=C3PO;packet size=4096;integrated
    security=SSPI;data source=BUNSEN;persist security info=False;initial
    catalog=Website" (I'm using VS.Net 2003)

    I set the user account to be "Trusted for delegation". I set both server
    computer accounts to be Trusted for delegation also.

    I set the web.config file to:
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <authorization>
    <allow users="*" />
    <disallow users="?" />


    Authentication works to the web server, but I get the following error when I
    try to access the SQL server :
    "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."

    Any tips/help would be greatly appreciated,
    ---
    Kelly D. Jones
    [email]kdjones74@hotmail.com[/email]


    Kelly D. Jones Guest

  2. Similar Questions and Discussions

    1. ASP.NET Impersonation / delegation
      you are on the right track. ntlm will not delegate even if your security team allowed delegation, only digest allows delegation. on win2k you...
    2. ASP.NET Impersonation & Delegation
      I have read various articles regarding explaining ASP.Net security model. I have one simple question regarding Delegation that i can't seemed to...
    3. Impersonation, Delegation & SQL Server
      I bailed on this before and just went to Basic Authentication and told the users they would have to live with signing on again.... but now I need to...
    4. Impersonation or Delegation?
      A client makes a request that executes a stored procedure in SQL Server. That stored procedure attempts to read a file on the web server but fails...
    5. Impersonation/Delegation security considerations
      I'm having trouble finding specific documentation regarding the negative impact of using delegation in a Windows 2000 environment. I've read...
  3. #2

    Default Re: Impersonation and delegation

    Try adding "Network Library=DBMSSOCN" for TCP/IP access or "Network
    Library=DBNMPNTW" for named pipe access to your connect string. Most of the
    stuff says named pipes won't work so use TCP/IP but we found the opposite to
    be true. Something else to check into is something called a service
    principal name. I'm not to clear on how to set it up or what it does
    exactly, our DBA figured out and set that up. It has something to do with
    helping the credentials get from one server to another when using the web
    application.

    Eric


    "Kelly D. Jones" <kdjones74@hotmail.com> wrote in message
    news:%23bajQOoZDHA.2668@TK2MSFTNGP09.phx.gbl...
    > I've read many messages and even more technotes, but I still can't get the
    > following scenario to work:
    >
    > I have a Windows 2003 web server and a separate Windows 2000/SQL server,
    > both in the same Active Directory on our LAN. I need to flow the user
    > credentials from 2000/XP clients, to the web server, and then onto the SQL
    > server.
    >
    > IIS is set to only allow Windows integrated authentication.
    >
    > My connection string is "workstation id=C3PO;packet size=4096;integrated
    > security=SSPI;data source=BUNSEN;persist security info=False;initial
    > catalog=Website" (I'm using VS.Net 2003)
    >
    > I set the user account to be "Trusted for delegation". I set both server
    > computer accounts to be Trusted for delegation also.
    >
    > I set the web.config file to:
    > <identity impersonate="true" />
    > <authentication mode="Windows" />
    > <authorization>
    > <allow users="*" />
    > <disallow users="?" />
    >
    >
    > Authentication works to the web server, but I get the following error when
    I
    > try to access the SQL server :
    > "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."
    >
    > Any tips/help would be greatly appreciated,
    > ---
    > Kelly D. Jones
    > [email]kdjones74@hotmail.com[/email]
    >
    >

    Eric 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