Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2005

Tip: Looking for answers? Try searching our database.

impersonationContext  vs Process (Diagnostics) somebody help.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Durairaj K. Avasi - 20 Sep 2005 21:39 GMT
I want to execute a .exe file through my ASP.Net C# .Net framework 1.1
application with user "X" credential. i used impersonationContext ( see notes
at http://support.microsoft.com/?id=306158#4) to accomblish this. I pretty
sure that this concept of imperonation works.

Since Process.Start always uses the security context of the parent ASP.NET
process(which is domainName\ASPNET), my impersonation is no use with Process.

Do anbody know how to execute a .exe file without using Process (Diagnostics).
with the current thread impersonated user?

Thanks
Avasi
Cowboy (Gregory A. Beamer) - MVP - 21 Sep 2005 13:38 GMT
You can set up impersonation in the ASP.NET app, if it is not a purely
anonymous access application. It sounds like that is your issue.

One easy way around this is to code for COM+ (Enterprise Services) and set a
particular user for the application. You then fire off the COM+ "server" and
have it call process, using a higher account than the anon account.

The only other easy option is to allow the ASPNET user to fire the process.
This could be a security hole.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> I want to execute a .exe file through my ASP.Net C# .Net framework 1.1
> application with user "X" credential. i used impersonationContext ( see notes
[quoted text clipped - 9 lines]
> Thanks
> Avasi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.