Re: Runtime Impersonation

From: Brendan Duffy (brendan_at_dotnetsolutions.com.au)
Date: 07/31/03


Date: Thu, 31 Jul 2003 12:00:23 +1000


Hi,

If you are running Win2000, impersonation pretty much only works from the
system account. Read the fine print in the MSDN entry on LogonUser

Brendan

"Snig" <snig.bhaumik@yahoo.co.in> wrote in message
news:%23wKdAvpVDHA.1928@TK2MSFTNGP12.phx.gbl...
> Hi all
>
> I need to implement Runtime (Conditional) Impersonation in one of my
ASP.NET
> Pages.
>
> If I use the <identity impersonate="true" /> in web.config file, it works
> fine.
>
> But in code, while I try to Impersonate I get Win32 error. I am using
> "Logon" Win32 API for get a specific token. But this API is returning
error
> 1314 : A required privilege is not held by the client
>
> I tried to resolve it by assinging the most probable Security priviledges
to
> the "ASPNET" account by "Local Security Policy" snap-in. But nothing
worked.
>
> Can anybody please help me ?
>
> Thanx in advance.
>
> Snig.
>
>



Relevant Pages

  • Runtime Impersonation
    ... I need to implement Runtime Impersonation in one of my ASP.NET ... while I try to Impersonate I get Win32 error. ... "Logon" Win32 API for get a specific token. ... I tried to resolve it by assinging the most probable Security priviledges to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Runtime Impersonation - Help !!!
    ... I need to implement Runtime Impersonation in one of my ASP.NET ... while I try to Impersonate I get Win32 error. ... "Logon" Win32 API for get a specific token. ... I tried to resolve it by assinging the most probable Security priviledges to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Runtime Impersonation
    ... I need to implement Runtime Impersonation in one of my ASP.NET ... while I try to Impersonate I get Win32 error. ... "Logon" Win32 API for get a specific token. ... I tried to resolve it by assinging the most probable Security priviledges to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: impersonation problem - any good resources ?
    ... "The LogonUser function attempts to log a user on to the local computer. ... > allow ' proper execution presents a security risk. ... > Imports System.Runtime.InteropServices ... It seems to me that it means that if the impersonation took, ...
    (microsoft.public.dotnet.security)
  • Re: Impersonate ARRRRRRRRRRRRRRRRRRGG!
    ... One this i see wrong is LogonUser returns an int. ... the token you get back cant be used for impersonation and needs to ... > attractive and well preserved body, ...
    (microsoft.public.dotnet.csharp.general)