Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

hi .net gurus

here is my question " how does impersonate in asp.net works?
explain with good example"

Answer Posted / karthika.s

At times users access a resource as though they were someone
else. This is known as impersonation.In ASP.NET, when
impersonation is turned off, the resources can be accessed
using a "local system process" account. When impersonation
is turned on, ASP.NET executes every resource using the
account of a specified user who is authenticated when the
user makes the request

It is easy to implement impersonation in ASP.Net. You can
use the Web.config file that is found in the root directory
of the application to enable or disable impersonation for a
particular application.

The application can also use the authenticated identity that
is received from the IIS if you enable impersonation. If you
are going to implement impersonation for an ASP.Net
application you can do so in three ways.

Just open up the web.config file, found in the root
directory of the application. By default impersonation is
disabled and you can find this with the line,

<identity impersonate="false" />

With the above settings the application worker process
account for the ASP.Net application is used. You can enable
impersonation by,

<identity impersonate="true" />

With this setting an authenticated user account or the
anonymous internet user account is used. If you want to
enable impersonation for a particular user account then you
have to use the following syntax.

<identity impersonate="true" userName="user_name"
password="user_password" />

By mentioning the user like this ASP.Net uses that account
specifically to run the application.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we access view state value of this page in the next page?

959


Explain About duration in caching technique

1019


What is the use of placeholder control?

962


Define the term Scavenging in Caching?

987


What is autopostback in dropdownlist in asp net?

944


What is localhost in asp.net?

968


What is state management in asp.net with example?

899


Can any body provide me the sample web application in asp.net

1912


What is owin authentication?

917


How does u call and execute a sp in .net?

944


What is the difference between runtime version and version?

981


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

984


What is use of <% %> in asp.net?

960


How does the service stream content?

978


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

924