From 9e23c7dc8b48a01aef8f7a93d50975e2bd3d97ff Mon Sep 17 00:00:00 2001
From: Chris Darroch
AuthUserFile /usr/local/apache/passwd/passwords
AuthLDAPURL ldap://ldaphost/o=yourorg
- Require valid-user
+ Require valid-user
</Directory>
To take authorization a little further, authorization container
directives such as
- <MatchAll>
and
- <MatchAny>
+ <RequireAll>
+ and
+ <RequireAny>
allow logic to be applied so that the order in which authorization
is handled can be completely controled through the configuration.
See Authorization
@@ -455,20 +456,18 @@ person in
configured and called in a specific order which didn't depend on the
load order of the auth module itself. This same provider based mechanism
has been brought forward into authorization as well. What this means is
- that the Require
and
- Match
directives
- not only specify which authorization methods should be used, they also
+ that the Require
directive
+ not only specifies which authorization methods should be used, it also
specifies the order in which they are called. Multiple authorization
- methods are called in the same order in which the
- Require
- or Match
directives
+ methods are called in the same order in which the
+ Require
directives
appear in the configuration.
With the introduction of authorization container directives
such as
- <MatchAll>
+ <RequireAll>
and
- <MatchAny>
,
+ <RequireAny>
,
the configuration also has control over when the
authorization methods are called and what criteria determines when
access is granted. See
@@ -479,25 +478,11 @@ person in
By default all
Require
directives are handled as though contained within a
- <MatchAny>
+ <RequireAny>
container directive. In other words, if
any of the specified authorization methods succeed, then authorization
is granted.
In contrast, by default all
- Match
directives
- are handled as though contained within a
- <MatchAll>
- container directive (unless they are explicitly contained within
- a different authorization container directive).
- This permits
- Match
directives
- to be usefully mixed with negated
- Match not
directives. To authorize the request,
- none of the negated directives can match their parameters,
- while all of the positive directives must match their
- parameters (or else return a neutral result).
The usage of these providers is specified through the
- Require
and
- Match
directives.
- These directives register the authorization providers
+ Require
directive.
+ This directive registers the authorization providers
that will be called during the authorization stage of the request
processing. For example:
- Match not ip 10.252.46.165
+ <RequireAll>
+
+ Require all granted
+ Require not ip 10.252.46.165
+
+ </RequireAll>
Visitors coming from that address will not be able to see @@ -549,30 +538,37 @@ person in machine name, rather than an IP address, you can use that.
- Match not host host.example.com
+ <RequireAll>
+
+ Require all granted
+ Require not host host.example.com
+
+ </RequireAll>
And, if you'd like to block access from an entire domain, you can specify just part of an address or domain name:
- Match all granted
- <MatchNotAny>
+ <RequireAll>
- Match ip 192.168.205
- Match host phishers.example.com moreidiots.example
- Match host ke
+ Require all granted
+ <RequireNone>
+
+ Require ip 192.168.205
+ Require host phishers.example.com moreidiots.example
+ Require host ke
+
+ </RequireNone>
- </MatchNotAny>
+ </RequireAll>
The above example uses the <MatchNotAny>
container directive
+
The above example uses the <RequireNone>
directive
to make sure that none of the
- Match
directives
- match their parameters before granting access. Note that
- the Match all granted
directive and the
- <MatchNotAny>
are implicitly contained
- within a <MatchAll>
directive.
Require
directives
+ contained within it
+ match their parameters before granting access.
diff --git a/docs/manual/howto/auth.xml.ja b/docs/manual/howto/auth.xml.ja
index 21928bbad5..ec73d21a7c 100644
--- a/docs/manual/howto/auth.xml.ja
+++ b/docs/manual/howto/auth.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
+
+