HELP WITH IMPERSONATING

From: u_heet (u_heet_at_discussions.microsoft.com)
Date: 09/27/04


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?



Relevant Pages

  • Re: security on the web.config file
    ... the reason I use the impersonate is the web site will allow ... different network shares on multiple servers so the impersonated account has ... the .config file can only we accessed from the server ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: SQL Mail
    ... For SQL Mail to work, you need to have the service running under a domain ... Unless it is a domain account, ... > need to be able to send email via SQL from ServerB to ServerA. ...
    (microsoft.public.sqlserver.server)
  • Re: SQL Mail
    ... local account syncd with same password as domain account.. ... I have another mailbox on the domain XXX called pete.. ... > need to be able to send email via SQL from ServerB to ServerA. ...
    (microsoft.public.sqlserver.server)
  • RE: Copy Database Wizard Fails to Copy Files
    ... I had the exact same problem until I executed the package under an account ... Regards, ... > simple table) on ServerA to ServerB. ... > Put the database Test in single user mode.......Ok ...
    (microsoft.public.sqlserver.dts)
  • Re: who is Machinename$
    ... That is the account name of the computer. ... > We have a windows 2003 web server named ServerA which has an ODBC ... > ServerB, ... > Anyone knows who is Machinename$, and any reference would be great! ...
    (microsoft.public.windows.server.general)