Re: authorization for sub directory
From: Ken Schaefer (kenREMOVE_at_THISadopenstatic.com)
Date: 11/23/04
- Next message: Matt: "Re: Configuration Differences"
- Previous message: Ken Schaefer: "Re: Domain could not be contacted problem"
- In reply to: viki: "authorization for sub directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 23 Nov 2004 23:46:50 +1100
You will need to override the 401 error status that ASP.NET is sending back,
and send back 200 instead (along with your custom text). When the webserver
sends a HTTP 401 status, the browser decides what to do, and most will
pop-up an authentication dialogue box (for the first three times - after
that they will display a message saying that you are not authorised to view
the page)
Cheers
Ken
"viki" <freetorn2002@yahoo.ca> wrote in message
news:deb17ac9.0411211801.211adc1@posting.google.com...
> Hi All,
> Could anybody advise me for the following..
> I want to restrict access to a subdirectory in an web application
> which has "integrated windows authentication". I have set the
> directory security for the sub directory for a particular group. But
> when the link goes to the page in the sub directory it asks for the
> credentials again. I want to redirect to "not accessible" page
> whenever any page in the subdirecotry is accessed by other groups.
>
> Thanks in advance,
> Viki
- Next message: Matt: "Re: Configuration Differences"
- Previous message: Ken Schaefer: "Re: Domain could not be contacted problem"
- In reply to: viki: "authorization for sub directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]