Wednesday, 3 June 2009

.NET WebApps Impersonation

There are many examples on why impersonation is useful... It gives you the ability to impersonate a user to access some sort of resource/utility either on the current system or a networked system.

An example might be that your attempting to retrieve a list of directories from a server in which you do not have access. Getting around this is quite simple.

Open up your web.config and enter the following...

<identity impersonate="true" username="" password="" />

No comments: