Re: Help with Impersonating

From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 10/03/04

  • Next message: Artboy717: "Re: Search feature in an encrypted database"
    Date: Sun, 3 Oct 2004 19:18:16 +0200
    
    

    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/
    "u_heet" <u_heet@discussions.microsoft.com> wrote in message 
    news:508F7EBA-DA38-4FD8-8F27-CBBEA76FD819@microsoft.com...
    > 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>
    > </configuration> 
    

  • Next message: Artboy717: "Re: Search feature in an encrypted database"

    Relevant Pages

    • 70-292: can someone please verify / explain the answer to this question
      ... On a windows Server 2003 computer named serverA, ... runs in the security context of a domain account named NightBackup. ... The backup program runs successfully for four weeks. ... Unlock the NightBackup user account. ...
      (microsoft.public.cert.exam.mcsa)
    • 70-292: can someone please verify / explain the answer to this question
      ... On a windows Server 2003 computer named serverA, ... runs in the security context of a domain account named NightBackup. ... The backup program runs successfully for four weeks. ... Unlock the NightBackup user account. ...
      (microsoft.public.cert.exam.mcse)
    • Re: Machinename$ account
      ... You may want to consider defining an application pool identity ... > After checking the setting on ServerA, so far I have not figured out ... > why this account is used. ... > "Roger Abell" wrote in message ...
      (microsoft.public.windows.server.security)
    • RE: 70-292: can someone please verify / explain the answer to this que
      ... by resetting a user pwd does not automatically unlock the account. ... > The backup program runs successfully for four weeks. ... > serverA with your own user account and perform a local backup. ... > You want the AutoBack scheduled task to perform unattended backups every ...
      (microsoft.public.cert.exam.mcse)
    • Re: Machinename$ account
      ... After checking the setting on ServerA, so far I have not figured out ... IIS Directory security setting allows anonymous access using IUSR_ServerA ... I was expecting the page won't run, but it does, the account it uses is ...
      (microsoft.public.windows.server.security)