RE: WindowsIdentity.Impersonate() fails

From: Ravi (Ravi_at_discussions.microsoft.com)
Date: 12/20/04


Date: Mon, 20 Dec 2004 00:45:04 -0800

i am afraid , where can i find whether the account has that privilege or not.

"Dominick Baier" wrote:

> Does the account that tries to impersonate hold the "Impersonate after Authentication" privilege?
>
>
>
> ---
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> nntp://news.microsoft.com/microsoft.public.dotnet.security/>
>
> Hi,
>
> i am using LogonUser function with LOGON32_LOGON_INTERACTIVE and other
> parameters. using DuplicateToken function with securitypermissions = 2 and
> creating WindowsIdentity object with the duplicatetoken obtained from
> DuplicateToken function.
> i am trying to impersonate but is gives error saying "unable to
> impersonate", i would like to know all the reasons why
> windowsIdentity.Impersonate() fails saying "Unable to impersonate".
>
> Thanks
> Ravi
> ravib
>
> [microsoft.public.dotnet.security]
>



Relevant Pages