Runtime Impersonation

From: Snig (snigbb_at_yahoo.co.in)
Date: 07/30/03

  • Next message: Christoph Erdle: "Windows mode authentication - anonymous and authenticated access on same page"
    Date: Wed, 30 Jul 2003 20:44:34 +0530
    
    

    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.


  • Next message: Christoph Erdle: "Windows mode authentication - anonymous and authenticated access on same page"

    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)
    • Re: Runtime Impersonation
      ... impersonation pretty much only works from the ... Read the fine print in the MSDN entry on LogonUser ... Brendan ... while I try to Impersonate I get Win32 error. ...
      (microsoft.public.dotnet.framework.aspnet.security)