Re: ASP .net impersonation not working

From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 06/23/03

  • Next message: Rob: "Re: ASP .net impersonation not working"
    Date: Mon, 23 Jun 2003 23:31:03 +0200
    
    

    Prior to calling the page, that you get access denied read current user
    identity by executing WindowsIdentity.GetCurrent().Name and see if it
    matches the identity you think should be set.

    -- 
    Regards
    Matjaz Ladava, MCSE (NT4 & 2000)
    matjaz@ladava.com
    http://ladava.com
    "Rob" <frank@myhouse.com> wrote in message
    news:eOKFCscODHA.2316@TK2MSFTNGP12.phx.gbl...
    > I have a couple of pages that I'm using in an Intranet site.  One page
    > accesses a file server to display contents of it and another grabs
    > information and display's it from a SQL database.
    >
    > Now the web server is running Win2K and IIS 5 or above.
    >
    > And when I browse the pages locally the impersonation works just fine.
    When
    > I try and view the pages from any location other then the server I get
    > access denied errors and Login failed errors for the file one and the SQL
    > one respectively.
    >
    > I have the IIS set to Windows Authentication, I have impersonation = true
    in
    > the webconfig file.  Is there anything that would stop it from working?
    >
    > Thanks for your help
    >
    > Rob
    >
    >
    

  • Next message: Rob: "Re: ASP .net impersonation not working"

    Relevant Pages

    • ASP .net impersonation not working
      ... Now the web server is running Win2K and IIS 5 or above. ... And when I browse the pages locally the impersonation works just fine. ... access denied errors and Login failed errors for the file one and the SQL ... I have the IIS set to Windows Authentication, I have impersonation = true in ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: ASP .net impersonation not working
      ... Not sure if this is related, but make sure that the server ... >> information and display's it from a SQL database. ... >> And when I browse the pages locally the impersonation ... >> access denied errors and Login failed errors for the ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Going from anonymous security to Windows Security in an ASP.NET application
      ... as I said in my previous post - there is no context on the client... ... Your page.context exists purely on the server. ... we need to have our own login page instead of the standard Windows logon ... impersonation, which takes place on the server has no effect on page ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Impersonation question
      ... I am trying to get a better understanding of how impersonation works and I ... I have read that one can't access resources on network shares while ... provide enough credentials to the remote server to allow the remote server ...
      (microsoft.public.security)
    • Re: Login failed for user (null). Reason: Not associated with a trusted SQL Server connection.
      ... Are you in an AD realm? ... be passed to the server which contains the sql database - just ... Setup impersonation on your web site, using the Identity node in the ... The aspnet user on the database server has ...
      (microsoft.public.dotnet.general)