Re: form based authentication and free pages

From: YA (ra294@hotmail.com)
Date: 09/26/02


From: "YA" <ra294@hotmail.com>
Date: Thu, 26 Sep 2002 16:59:42 +0200


Thanks, your example helped me.
When the user does not have access to a folder it goes back (as it should
be) to the login page. On what condition I show the user "not allowed" label
in the login page ?

Thanks

ra294

"Ben Amada" <ben@powerpick.com> wrote in message
news:uH57U$UZCHA.1724@tkmsftngp10...
> Hi YA,
>
> Yes, you can use the <location> tags to make access restricted to
> authenticated users only for one or more folders in your web application.
> And you can also make one or more folders unrestricted where anyone
> (authenticated and unauthenticated users) can access the pages.
>
> Below is an example Web.Config I'm using. This Web.Config addresses two
> sub-folders off of the root folder. The "protected" sub-folder can only
be
> accessed by authenticated users, and the "unprotected" folder can be
> accessed by anyone. Hope this helps ...
>
> <configuration>
>
> <location path="protected">
> <system.web>
>
> <authorization>
> <deny users="?" />
> </authorization>
>
> </system.web>
> </location>
>
> <location path="unprotected">
> <system.web>
>
> <authorization>
> <allow users="*" />
> </authorization>
>
> </system.web>
> </location>
>
> <system.web>
>
> <authentication mode="Forms">
> <forms
> loginUrl="protected/login.aspx" />
> </authentication>
>
> </system.web>
>
> </configuration>
>
> --
> Ben
>
>



Relevant Pages

  • Re: Found it - Lost my quick launch
    ... Since the copied folder structure was incomplete, ... >>> What were the local admin tasks??? ... >>> admin login, just not for mine, it would seem to me that it would be an ... >>>> Quick Launch: Gives error message, ...
    (microsoft.public.windowsxp.general)
  • Re: Permission Denied
    ... The web page involved is a login page. ... I do not really need to show the webpage at all come to think of it. ... I have since tried making the folder as a subfolder of 'Calendar'. ... If you want to show the Web site in a separate window you can use automation ...
    (microsoft.public.outlook.program_forms)
  • Re: after bootup and login, takes ages to see the folders in My Computer
    ... I also notice that the folder contents show up at the time when the ... I see this as some problem with the networking starting up after I login ... I have run bootvis and it also shows that it ...
    (microsoft.public.windowsxp.general)
  • Blank screen when certain users log into server
    ... the admin login or one other ... Failed to perform redirection of folder Desktop. ... my NETLOGON share on the Domain Controller) ...
    (microsoft.public.windows.terminal_services)
  • Re: Login control and restricted member pages
    ... As you said the login dialog prompts each time the page loading a image, ... protected folder. ... When a page display some images file, ... the root members folder isn't. ...
    (microsoft.public.dotnet.framework.aspnet.security)