From: Rich Bowen Date: Thu, 4 Nov 2010 15:38:19 +0000 (+0000) Subject: Mention Satisfy in the HowTo, as per PR46256 X-Git-Tag: 2.2.18~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b625b6f831f716b5f9538002a5c40621ee4bc584;p=thirdparty%2Fapache%2Fhttpd.git Mention Satisfy in the HowTo, as per PR46256 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1031039 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/howto/auth.html.en b/docs/manual/howto/auth.html.en index 452aaeab390..69e92b66ead 100644 --- a/docs/manual/howto/auth.html.en +++ b/docs/manual/howto/auth.html.en @@ -34,6 +34,7 @@
  • Introduction
  • The Prerequisites
  • Getting it working
  • +
  • Satisfy
  • Letting more than one person in
  • Possible problems
  • @@ -255,6 +256,36 @@ module from each group.

    setting the user that is allowed to access this region of the server. In the next section, we discuss various ways to use the Require directive.

    +
    top
    +
    +

    Satisfy

    + +

    The Satisfy directive can be used to specify +that several criteria may be considered when trying to decide if a particular user +will be granted admission. Satisfy can take as an argument one of two options - all +or any. By default, it is assumed that the value is all. This means that if several +criteria are specified, then all of them must be met in order for someone to get in. +However, if set to any, then several criteria may be specified, but if +the user satisfies any of these, then they will be granted entrance.

    + +

    An example of this is using access control to assure that, although a resource +is password protected from outside your network, all hosts inside the network +will be given unauthenticated access to the resource. This would be accomplished +by using the Satisfy directive, as shown below.

    + +

    +<Directory /usr/local/apache/htdocs/sekrit> + AuthType Basic + AuthName intranet + AuthUserFile /www/passwd/users + AuthGroupFile /www/passwd/groups + Require group customers + Order allow,deny + Allow from internal.com + Satisfy any +</Directory> +

    +
    top

    Letting more than one @@ -370,6 +401,7 @@ person in

    Other options are available. Consult the mod_authn_dbm documentation for more details.

    +
    top

    More information

    diff --git a/docs/manual/howto/auth.xml b/docs/manual/howto/auth.xml index 98690f0e286..8814fb48018 100644 --- a/docs/manual/howto/auth.xml +++ b/docs/manual/howto/auth.xml @@ -254,6 +254,36 @@ module from each group.

    Require directive.

    +
    Satisfy + +

    The Satisfy directive can be used to specify +that several criteria may be considered when trying to decide if a particular user +will be granted admission. Satisfy can take as an argument one of two options - all +or any. By default, it is assumed that the value is all. This means that if several +criteria are specified, then all of them must be met in order for someone to get in. +However, if set to any, then several criteria may be specified, but if +the user satisfies any of these, then they will be granted entrance.

    + +

    An example of this is using access control to assure that, although a resource +is password protected from outside your network, all hosts inside the network +will be given unauthenticated access to the resource. This would be accomplished +by using the Satisfy directive, as shown below.

    + + +<Directory /usr/local/apache/htdocs/sekrit> + AuthType Basic + AuthName intranet + AuthUserFile /www/passwd/users + AuthGroupFile /www/passwd/groups + Require group customers + Order allow,deny + Allow from internal.com + Satisfy any +</Directory> + + +
    +
    Letting more than one person in

    The directives above only let one person (specifically @@ -369,6 +399,7 @@ person in

    Other options are available. Consult the mod_authn_dbm documentation for more details.

    +
    More information