all groups > asp.net security > august 2006 >
You're in the

asp.net security

group:

Running Process with Current Authenticated User



Running Process with Current Authenticated User Ron
8/18/2006 9:20:56 AM
asp.net security: Hello, I am trying to figure out how can I run a process under the
authenticated user's credentials without having to prompt for a
username and password? Is there anyway to allow for pass thru
authentication? I am tying to use the ProcessStartInfo class and I
obviously can get the current user name by using Identity.Name, but how
can I pass the password thru as well of the current user? When the
originally authenticate to the website, is there a way to store the
password safely to pass thru to the process at a later time? I am
fairly new still to ASP programming, so please bear with me if the
solution is simple.

Thanks in advance,
Ron

Re: Running Process with Current Authenticated User Joe Kaplan (MVP - ADSI)
8/19/2006 9:38:34 AM
You might be able to p/invoke CreateProcessWithTokenW (which may also
require DuplicateTokenHandle so that you can get a primary token for the
user). Check www.pinvoke.net to see if they have the declarations already.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

Re: Running Process with Current Authenticated User Dominick Baier
8/19/2006 1:00:06 PM
Hi,

You only have access to the password when you are using basic authentication
(which of course pops up the dialog box).

dominick
www.leastprivilege.com

[quoted text, click to view]

AddThis Social Bookmark Button