Re: Restrict access to a single user

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 14:09:43 -0500

Is anonymous access disabled in IIS? If you run some code in your app that
returns Context.User.Identity.Name to the screen when Fred is logged in,
what do you see?

That might help fix the problem.

Joe K.

"PV" <philipv-REMOVE-TO-REPLY@computronix.com> wrote in message
news:OT4XHaMdEHA.3528@TK2MSFTNGP12.phx.gbl...
> How can I get my web site restricted to a single user? I have my
web.config
> set up as follows:
>
> <authorization>
> <allow users="Fred" />
> <deny users="*" />
> </authorization>
>
> When I do this, nobody has access (not even Fred).
>
> If I try:
>
> <authorization>
> <allow users="Fred" />
> <deny users="?" />
> </authorization>
>
> Then everybody except anonymous has access (i.e. it is too wide open).
>
> I have enven put in <allow users="MyDomain\Fred" />, but it doesn't work.
> Fred is a valid user on the computer.
>
>



Relevant Pages

  • Re: VS2008 HTTP 403 Help!!
    ... Check in your IIS Manager, and make sure you created a virtual directory ... for your app. ... Seems like the publish took away the projects web app status. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Accessing 32 bit COM components in 64 bit IIS
    ... CGIs, and ASP scripts onto a 64bit machine, and it just works after they ... The most confusing aspect of running 32bit app on a 64bit OS is that you ... System32 access is redirected, etc). ... we will be introducing the ability to configure IIS to run ...
    (microsoft.public.inetserver.iis)
  • Re: ASP.Net 1.1 and 2.0 Coexist?
    ... I ran IIS 6 in IIS 5 isolation mode and, you're right, changing the isolation ... > You will automatically get one aspnet_wp process for the 1.x app and one for the 2.0 ... > ASP application either run in inetinfo, a shared dllhost process ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS forcing app to use .Net 2.0 when 1.1 is specified
    ... Please use the IIS Administration Tool to reconfigure ... reported that they were configured to use .Net 2.0 in the default app ... the IIS Manager to specify which framework version a given application ... Configuration Error ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 1st hosting of objects, new(), etc.
    ... I'm less interested in either app hosting the object, as I am in having the ... > ASP.Net application dependent on a remote object in a Windows Forms ... >> locally, and if an IIS application on the same machine runs first, I'll ...
    (microsoft.public.dotnet.framework.remoting)