Running Process with Current Authenticated User

R

Ron

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

PS - Posted this in the general ASP forum, sorry for the double post.
 
J

Joe Kaplan \(MVP - ADSI\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top