change ASPNet user name

C

Coco

Hi!
I am developing an asp.net which make use of my c# object
to put message in the message queue which is in the as/400
machine. there's security issue here where the queue
manager only allow the user that it regconise to access
the queue
i have a user called "Intranet" can access to the queue,
how can i make my program to run under this username?
 
J

Jim Shelly

You need to add an <identity impersonate = true> tag into the web.config.
Here is the complete syntax

<identity impersonate="true|false"
userName="domain\username"
password="password"/>
 
C

Coco

this setting will effect the whole application can i
change it to apply on a program only?
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top