all groups > dotnet security > september 2004 >
You're in the

dotnet security

group:

Help with Impersonating



Help with Impersonating u_heet
9/24/2004 4:39:02 PM
dotnet security: Hi, I am a newbie at .net so I appreciate all of your help.

I have a datagrid displaying unc_path's as a hyperlink to shares on servers.
The problem that I'm having is that I get "Access denied" but only on serverA.
Shares on ServerB are accessible. ServerA is located remotely, ServerB is
local. I get this "Access Denied" message when logged as a domain user. I
tried impersonating an "admin" account in a web.config file but it doesn't
seem to work. But if I log into my machine as an "Administrator" 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>
Re: Help with Impersonating Daniel Fisher(lennybacon)
10/3/2004 7:18:16 PM
If you are not logged in (e.g. Administrator w. WindowsAuth) the
ProcessIdentity that accesses the share is an account with no permissions on
the remote server.

--
Daniel Fisher(lennybacon)
MCP C# ASP.NET
Blog: http://www.lennybacon.com/


[quoted text, click to view]

AddThis Social Bookmark Button