HELP WITH IMPERSONATING
From: u_heet (u_heet_at_discussions.microsoft.com)
Date: 09/27/04
- Next message: Iain A. Mcleod: "problem writing a file"
- Previous message: Paul Clement: "Re: Can't logoff from IIS with Windows Identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 27 Sep 2004 10:17:02 -0700
Hi, I am a newbie at asp.net so I appreciate all of your help.
I have a datagrid displaying unc_path's as a hyperlink to network shares.
The problem that I'm having is that I get "Access denied" but only on serverB.
ServerA is local, ServerB is remote. I tried impersonating an "admin"
account in a web.config file but it doesn't seem to work. The output of
System.Security.Principal.WindowsIdentity.GetCurrent().Name shows the correct
domain account I'm trying to impersonate. Weird thing is if I log into my
machine as the account I'm trying to impersonate I can access the shares in
both serverA and serverB with no problems.
My web.config looks like this:
<configuration>
<system.web>
<customErrors mode="Off"/>
<identity impersonate="true" userName="myDomain\Admin" password="Admin" />
</system.web>
</configuration>
Am I missing something?
- Next message: Iain A. Mcleod: "problem writing a file"
- Previous message: Paul Clement: "Re: Can't logoff from IIS with Windows Identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|