Re: Security Problem
From: vinay balasubramaniam (vinay_balasubramaniam@satyam.com)
Date: 09/13/02
- Next message: vinay balasubramaniam: "Re: Impersonate and shared hosting"
- Previous message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- In reply to: Alex: "Security Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "vinay balasubramaniam" <vinay_balasubramaniam@satyam.com> Date: Fri, 13 Sep 2002 11:18:20 +0530
What you have tried is application level impersonation
When the impersonation apples to all the imcoming request
In case you want to impersonate per request ..
then use WindowsPrincipal.Impersonate method in ur code
This method will impersonate a sepecfic user specified
and generate the impersonatin token .. once the request is
over the impersonation token is destroyed..
"Alex" <alex2maui2@hotmail.com> wrote in message
news:#OYpeJeSCHA.2500@tkmsftngp13...
> Hello, I am having a problem excecuting a .CMD file under a different user
> name. I am trying to communicate between computers with the exe that the
cmd
> calls.
>
> I need a full example. Is there any other way besides impersonating? And
if
> not, Can someone tell me verything
> that needs to be set for it to work? I have tried
>
> <identity impersonate="true" userName="ALEX\Administrator"
> password="***"/>
>
> AND/OR macine.config
>
> <processModel userName="ALEX\Administrator" password="***">
>
> (with and without domain)
>
> but that did not work. I also tried some code that did
> work, from the article Q306158 INFO: Implementing
> Impersonation in an ASP.NET Application.
>
> It worked at my house when I made the app, but it does not
> work at the office. Why? The Only reason I can think of is
> that at home the other computer is ntfs, and mine is not,
> and at the office, both are ntfs. Is that the problem? And
> If so, How do i fix it?
>
> Can someone please help!
>
> Thanks in advance
> Alex
>
>
- Next message: vinay balasubramaniam: "Re: Impersonate and shared hosting"
- Previous message: Eugene N Agafonov: "Re: SQL server acess from ASP.NET"
- In reply to: Alex: "Security Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|