Re: Security

From: Jeffrey Palermo [MCP] (http://dotnetjunkies.com/weblog/jpalermo)
Date: 10/09/04


Date: Fri, 8 Oct 2004 21:21:32 -0500

Demetri,
    I'll share what we do because I do something similar. I use the
web.config file to impersonate a domain user that has access to the database
and other domain resources. I use aspnet_setreg to encrypt and store in the
registry the domain user and password. I leave the IIS settings alone and
have Windows Integrated Security set. ASP.NET is able to authenticate the
user while running the code under the impersonated account. It works great.

Best regards,
Jeffrey Palermo

"Demetri" <Demetri@discussions.microsoft.com> wrote in message
news:7BD4844E-4DEB-43C1-8E79-A3BDCDD1026A@microsoft.com...
> I have a client that would like the asp.net application to have security
as
> follows:
>
> Impersonated using account XXXXX for the purpose of using SSPI in making
the
> database connection. This way no user information is stored anywhere but
IIS
> security settings.
>
> At the same time the app will be in need of capturing user NT credentials
to
> identify who is actually accessing the web application. The NT account
itself
> will not be set up in SQL server. So the app can not use integrated
security.
>
> Normally the web.config would have the db connection string using a db
> defined user account. However, in this case we need the db user to be the
> same user as the web app is running under yet we need the client user's NT
> info.
>
> Any help is appreciated.
>
> -Demetri



Relevant Pages

  • Re: Out of Process execution and .NET
    ... "charlie" expressed in the message known ... I will impersonate a Domain ... security weakness of the highest sort. ... than a blanket Domain Admin account), ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to use WindowsPrincipal properly??
    ... > If you want to check if the user is in the local computers security group ... > used by the general public you have to use Basic Authentication of course. ... You can logon a set account ... > WindowsIndentity which is then used to Impersonate. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Queryinterface Error
    ... AS for the problem you described, it is likely due to security issue. ... the current logon user account. ... IIS: Integrited windows? ... By default, if we didn't use impersonate, asp.net will run under the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: NTLM Win2000 and Impersonation
    ... > I am using NTLM in Win2000 to impersonate an Administrator ... > account which is part of Administrator group everything ... > returned security context is used to retrieve a token ...
    (microsoft.public.platformsdk.security)
  • Re: NTLM Win2000 and Impersonation
    ... >> account which is part of Administrator group everything ... >> returned security context is used to retrieve a token ... >> impersonate an Administrator. ...
    (microsoft.public.platformsdk.security)