Re: Security Problem

From: vinay balasubramaniam (vinay_balasubramaniam@satyam.com)
Date: 09/13/02


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
>
>



Relevant Pages

  • Re: Windows authentication for web service client??
    ... > Dim Response As System.Net.HttpWebResponse ... > make my http WEBDAV request here ... ... CredentialCache.DefaultCredentials will return the credentials that ... I have try the same approach using implicity impersonation, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Impersonate() & ASPNET worker threads. Bug or undocumented feature?
    ... > impersonation on in web.config. ... > In my oppinion ASPNET worker process even in one request scope switches ... > The anonymous access for application should be forbidden, ... that ASPNET worker might switch threads while executing ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms Authentication and Impersonation
    ... On the IIS box, turn impersonation -off- in web.config so that asp.net ... Rewrite the page with your newfound knowledge of thread impersonation - ... recycle by allowing the request (this particular request of the aspx page ... so once the request to the file-accessing aspx page is ...
    (microsoft.public.inetserver.iis.security)
  • Can it work...? - ASP.NET Impersonation with Remoting
    ... I have an ASP.NET Web Page / Web Service that runs on IIS and uses ... Server expects a Principal token not a cheapo Impersonation token ... request it do the work (The Service will check the credentials and ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Credentials and authentication
    ... you can if you use basic authenication. ... turn on impersonation in web config, and set the credials in the ... and fill in the credentials in the web request. ...
    (microsoft.public.dotnet.framework.aspnet)