You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@hyperreal.com> on 1996/02/22 22:31:07 UTC
Exclusive .htaccess types (fwd)
No ack sent.
Forwarded message:
> From douglas@leftbank.com Thu Feb 22 09:38:40 1996
> From: douglas@leftbank.com (Douglas O'Flaherty)
> Message-Id: <96...@leftbank.com>
> Subject: Exclusive .htaccess types
> To: apache-bugs@apache.org
> Date: Thu, 22 Feb 1996 12:37:27 -0500 (EST)
> X-Mailer: ELM [version 2.4 PL24]
> Mime-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> Content-Length: 233
>
>
> Using domain (IP) allows and passwords are mutually exclusive.
>
> This prevents the common situation of allowing everyone on a site access
> to a directory and off-site users with the correct passwords.
>
> Working on a solution
>
> douglas
>
>
Re: Exclusive .htaccess types (fwd)
Posted by "James H. Cloos Jr." <cl...@jhcloos.com>.
My take on this one was an auth module that checked the remote site
and returned OK if in the ``bypassed'' site/domain else DECLINED.
Of course, this requires that domain_auth_module run before any of the
other auth_modules.....
[sigh]
-JimC
--
James H. Cloos, Jr. <URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com Work: cloos@io.com
LPF,Usenix,SAGE,ISOC
Re: Exclusive .htaccess types (fwd)
Posted by Mark J Cox <ma...@ukweb.com>.
> > This prevents the common situation of allowing everyone on a site access
> > to a directory and off-site users with the correct passwords.
This is what NCSA have allowed with their "Satisfy" directive. The
example below says "If not from .ukweb.com then get a password".
<Limit GET PUT>
order deny,allow
deny from all
allow from .ukweb.com
require group staff
satisfy any
</Limit>
(Using "satisfy all" would require a password and from .ukweb.com.)
This can't be implemented nicely using the current API; you need to kludge
process_request_internal() in http_request.c
Actually I don't think the NCSA directives give enough information. It
says "either allow from .ukweb.com or ask for a password". It's not
that obvious which order it is going to check them in by looking at the
access conf file. The NCSA server does the password check second.
I'd prefer "satisfy access or auth".
[Actually "satisfy auth or access" (ask for a password but don't
worry too much if we don't have a valid user and we are in .ukweb.com)
isn't going to work at all since the browser needs to see an initial
404 failure before it challenges for a password.]
Is this a one-off, or in the future will we get asked for more complex
schemes "allow from .ukweb.com without a password, .xyzzy.com with a
password only, the rest with a password or anonymous login"?
How about a "master" auth/access checker module that is used from
process_request_internal() which handles directives like "satisfy" and farms
out to access and authentication modules as required?
Mark