Running Process as Current Authenticated User

G

GoneRural

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
 
G

Guest

You can try using P/Invoke to the LogonUser API method. There's plenty of
sample code around.

Peter
 

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,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top