impersonation
-
hi can some one give the simple answer what is impersonation i am not getting correct information , would appreciate if someone gives a good answer
Thanks sri
-
hi can some one give the simple answer what is impersonation i am not getting correct information , would appreciate if someone gives a good answer
Thanks sri
Hi, basically impersonation is a means for a particular process account to access a given ressource on behalf of some other process accounts. Simply speaking, say i am a user process and i have access to some local resources on my computer. You are another process which does not have access to local resources on my pc. If you really need to access these local resources, i can give you access by letting you "impersonate" me (i.e temporarily take my identity). This often occurs in ASP.NET where the account IUSR_YOUR_MACHINE_NAME is required to execute some resources to which it does not have rights. In this case, you have to give ASP.NET the right to impersonate another account (say admin account for example) to do the job. Eg. If you need to save a file on the server and the account IUSR_YOUR_MACHINE_NAME does not have enough rights to do it, it is a common practice to allow ASP.NET to temporarily take the identity of another account to perform the job. This is how it can be done in the web.config file: < identity impersonate="true" userName="MyDomain\Admin" password="admin"/> Hope this helps :-) Carpe diem, Krg