Re: Impersonate code sample?

From: Brian Pieslak (brian_at_nospam.metier.com)
Date: 08/04/03


Date: Mon, 4 Aug 2003 16:03:25 -0400


    I downloaded the Sample source code and modified it to match my
username, password, and domain in my office.
    I tried the permutations of LogonType and LogonProvider for w2k, and
unfortunately, I could not get the example to work

    Has anyone been able to successfully implement Impersonation on Windows
2000 Server?
    If so, could you share a sample of source code?

Thanks,
Brian

"Naveen K Kohli" <naveenkohli@hotmail.com> wrote in message
news:e%23wfxIaTDHA.2092@TK2MSFTNGP10.phx.gbl...
> Here is some code that you may be able to use.
>
> http://www.netomatix.com/ImpersonateUser.aspx
>
> Naveen
>
> "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netRemuvThis> wrote
in
> message news:u2ThbiVTDHA.1324@TK2MSFTNGP11.phx.gbl...
> > One of the guys at work is creating an ASP.NET app against a legacy COM
> > component that uses SQL Server Integrated security. Somewhere recently,
I
> > saw a code sample that showed how to impersonate an account for data
> access
> > by changing the identity of the thread the ASP.NET application was
running
> > under. To save him some time, does anyone have a link to a sample like
> this.
> >
> > --
> > Gregory A. Beamer
> > MVP; MCP: +I, SE, SD, DBA
> > Author: ADO.NET and XML: ASP.NET on the Edge
> >
> >
>
****************************************************************************
> > ****
> > Think Outside the Box!
> >
>
****************************************************************************
> > ****
> >
> >
>
>



Relevant Pages

  • Re: Impersonate code sample?
    ... username, password, and domain in my office. ... I tried the permutations of LogonType and LogonProvider for w2k, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Design (easy-ish) cipher C++ implentation,
    ... I'm looking to design a cipher to encrypt using a ... off with the idea of using 3Des or custom Des based for the cipher, ... Username is 5 characters ... I think I'm right in suggesting that the permutations are better coming ...
    (sci.crypt)

Quantcast