Re: SQL server acess from ASP.NET

From: Li-Yan Zhang [MS] (lyzh@online.microsoft.com)
Date: 09/14/02


From: lyzh@online.microsoft.com (Li-Yan Zhang [MS])
Date: Sat, 14 Sep 2002 15:18:06 GMT


Eugene,

When you try to leave the machine with an impersonated identity, another
concept known as delegation comes into play. You only leave the machine as
that identity if the token has network credentials . Otherwise, you leave
the machine as the anonymous user (NT AUTHORITY\ANONYMOUS LOGON).

Delegation is supported in Windows 2000 + , and only when the Kerberos
authentication protocol is used, which requires Active Directory.
Unconstrained delegation is inherently dangerous: it gives the server the
right to act as the authenticated user anywhere they have access on the
network. For that reason, many corporations don¡¯t have accounts and
machines configured in AD as trusted for delegation on corporate networks.

Roughly speaking, the following three steps are required to support
delegation:

Step 1: Verify that the user's account can be delegated in AD.The client
identity must not be marked as "Account is sensitive and cannot be
delegated" in the Active Directory Service.

Step 2: If you're running a service or application under an account other
than LocalSystem, you need to verify that the account is permitted to act
as a delegate.The server identity must be marked as "Trusted for
delegation" in the Active Directory Service.

Step 3: You also need to make sure that all computers used within the
distributed application are trusted for delegation. Check the "Computer Is
Trusted For Delegation" option for more information.

Please also take care the NTLM authentication protocol in Integrated
Windows Auth mode of IIS is not delegatable. Make sure Kerberos is used in
place.

With regard to SQL server, please also check out the URL below:
Security Account Delegation
http://msdn.microsoft.com/library/en-us/adminsql/ad_security_2gmm.asp

Well, looking back, to make delegation works, there is really a long way to
go. :-(
I might miss some points here,however, a good recommendation is to take a
look at the good book below:
Designing Secure Web Applications on Windows 2000
http://www.amazon.com/exec/obidos/ASIN/0735609950

Good luck in your project!

Thanks,
Li-Yan Zhang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com



Relevant Pages

  • Re: 2003 Server Client/Delegation and Data Issues
    ... Did you also use F5 to update the AD UC console on the 2003, ... Win23K server to look for a unstarted services that may be needed, ... - Checked the delegation permissions on the OU ... I noticed that in the administrator account the ...
    (microsoft.public.windows.server.active_directory)
  • Re: Windows (Trusted) Authentication and SQL Server
    ... I can still run the application when logged in locally to the IIS machine, ... > The account whose credentials are being delegated must be a domain account ... > be marked in Active Directory as trusted for delegation. ... > Server) does not need to be marked as trusted. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Access denied ( From one site to another, that is in another server)
    ... You are running into a delegation issue here. ... remote resources on behalf of the client. ... from a one server to get to another server, the account credentials must be ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Using NT Authentication with Linked Server
    ... You are running into a double hop (or delegation) scenario. ... User trying to connect to SQL Server is not sensitive and can be ... how to register SPNs for your SQL Service account). ... Use sp_addlinkedsrvlogin on the first linked server (server B in your ...
    (microsoft.public.sqlserver.security)
  • Re: Windows (Trusted) Authentication and SQL Server
    ... The account whose credentials are being delegated must be a domain account ... The computer on which the delegation takes place ... Server) does not need to be marked as trusted. ... in to play is when an IE client connects to a web server. ...
    (microsoft.public.dotnet.framework.aspnet.security)

Quantcast