I wanted to impersonate the user who is in the abc domain from the user of the xyz domain in asp.net. Paste the code if possible.
In web.config
<identity impersonate="true" userName="domain\user" password="password" />