Re: c#, indexing service and authorization

From: aafu (ms_aafu@hotmail.com)
Date: 12/27/02


From: "aafu" <ms_aafu@hotmail.com>
Date: Thu, 26 Dec 2002 17:10:29 -0800


Call LogonUser() to create the specified access token.
Then,ImpersonateLoggedOnUser() to change the identity of current thread=)

"Yuen" <george.yuen@infopx.com> wrote in message
news:e2pZWxkqCHA.2496@TK2MSFTNGP10...
> Hi all,
>
> I would like to seek your help to solve the following problem. I'm
writing
> a program in c# and want to pretending another user (the username and
> password can be hardcoded into the program) to query indexing service.
>
> e.g. My program is running by user_A. However, I want the program use the
> privilege of user_B to make a query. Is there any way to do so?
>
> Thanks.
>
> Regards,
> George
>
>



Relevant Pages

  • c#, indexing service and authorization
    ... I'm writing ... password can be hardcoded into the program) to query indexing service. ... Regards, ...
    (microsoft.public.dotnet.security)
  • Re: c#, indexing service and authorization
    ... Thanks aafu. ... My platform is Win2000. ... I can't call logonUser successfully. ... >> password can be hardcoded into the program) to query indexing service. ...
    (microsoft.public.dotnet.security)

Quantcast