New Message on dotNET User Group Hyd

Impersonation- simple defination

Reply
  Reply to Sender   Recommend Message 3 in Discussion
From: dharmesh17

Impersonate means to send your request on behalf of the user you put in the impersonate selection of your config files. By Default all web requests to a web server goes through a guest account but some time we need to use resources which are not accessible for a guest account so at this stage you can use impersonate to send your request impersonating your self with some account which has access to that resource(example a database) <o:p></o:p>

     <o:p></o:p>

 <identity impersonate="true" userName=" your user name" password=" your pwd J"/><o:p></o:p>

But be careful as your user name and pwd will be in a plane text format for other to seeJ. So better option is to create an application pool in your IIS BOX as shown below<o:p></o:p>

<v:shapetype id=_x0000_t75 stroked="f" filled="f" path="[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id=_x0000_i1025 style="WIDTH: 6in; HEIGHT: 331.5pt" type="#_x0000_t75"><v:imagedata o:title="" src=""></v:imagedata></v:shape><o:p></o:p>

Open your IIS expand the application pool and right click on it and add new app pool as shown <o:p></o:p>

<v:shape id=_x0000_i1026 style="WIDTH: 6in; HEIGHT: 345.75pt" type="#_x0000_t75"><v:imagedata o:title="" src=""></v:imagedata></v:shape><o:p></o:p>

After creating the application pool right click on the new application pool you created and go to properties tab and select configurable radio option and give the account name and pwd that has access to the resources (example a database user name and pwd).<o:p></o:p>

And click ok.<o:p></o:p>

<v:shape id=_x0000_i1027 style="WIDTH: 345.75pt; HEIGHT: 326.25pt" type="#_x0000_t75"><v:imagedata o:title="" src=""></v:imagedata></v:shape><o:p></o:p>

Now go to the site you have and right click and go to properties as shown in fig below select the new created application pool .<o:p></o:p>

<o:p> </o:p>

<v:shape id=_x0000_i1028 style="WIDTH: 6in; HEIGHT: 345.75pt" type="#_x0000_t75"><v:imagedata o:title="" src=""></v:imagedata></v:shape><o:p></o:p>

<o:p> </o:p>

After this all your web requests will be send on behalf of the user you specified in the application pool.This is secured way of impersonating rather than putting your user name and password in web config J

 

Look at the attached document for screen shots of the same

Do let me know if you need any further help in this regards

 

Cheers:-)

Dharmesh

<o:p> </o:p>

View Attachment(s)

View other groups in this category.


Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to