Re: Intranet Security



You need to write some code so that a 401 (Unauthorized) is not sent to the browser.

In the current situation, IIS is detecting that the user doesn't have permissions to the page, and is sending a HTTP 401 response back. It is then up to the browser to decide what to do. By default a browser will put up a credentials dialogue allowing the user to supply alternate credentials that might be acceptable (which is useful in case the user ever made a typo in their password, or they need to use alternate credentials).

In your case, you need to override this 401 response, and send back something else (e.g. 200 OK) and the HTML content you want to display.

You can certainly customise the 401 error page itself, but it is up to the browser to decide whether to display this or not. By default, most browsers will allow the user 3 goes at the password before they will display your custom 401 page.

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken


"Spechty" <Spechty@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CF680942-0D75-440E-8104-6934386DDC80@xxxxxxxxxxxxxxxx
I have a test intranet site set up. I have IIS set for Integrated Security.
IIS server is in a domain. and only domain PCs will access the intranet.
the URL is http:\\Intranet.

I have NTFS settings on the folders for the site. I have several folders
that only specific users/groups who will only be allowed access. In my
testing I use a user who does not have access to these pages. And I get
prompted for credentials. I would like to redirect the user to a denied page
instead of credentials. how could I accomplish this?

Thanks

.



Relevant Pages

  • Re: Any way to display a "bad password entered" message at https l
    ... If you are sending back a 401 HTTP status, then the browser will just popup the dialogue again. ... You'd need to change the HTTP status (e.g. via an ISAPI filter, or module if you are using IIS 7) so as to have the browser display your message. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Cached Logon
    ... "Roland Hall" wrote in message ... :>: supplies their credentials, and the browser sends them to the server. ...
    (microsoft.public.win2000.security)
  • Re: Authenticate user and allow anonymous access
    ... But all anonymous users would use the same credentials so ... > you send a 401.1 to the calling browser, ... > whatever is completely cut out, until the negotiation process is done, ... > This will cause the browser and IIS to start the negotiation process, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cached Logon
    ... "Roland Hall" wrote in message ... :>: supplies their credentials, and the browser sends them to the server. ...
    (microsoft.public.windows.server.general)
  • Re: Cached Logon
    ... "Roland Hall" wrote in message ... :>: supplies their credentials, and the browser sends them to the server. ...
    (microsoft.public.sqlserver.connect)