Commit 640ebd4d authored by Bradley Nicholes's avatar Bradley Nicholes
Browse files

Add 'granted' and 'denied' arguments to the authz 'all' provider to try to...

Add 'granted' and 'denied' arguments to the authz 'all' provider to try to mimic the previous 'allow from all' and 'deny from all' functionality

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/authz-dev@359936 13f79535-47bb-0310-9956-ffa450edef68
parent 37d5bd14
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -444,10 +444,16 @@ static authz_status host_check_authorization(request_rec *r, const char *require

static authz_status all_check_authorization(request_rec *r, const char *require_line)
{
    /* Just let everybody in. This is basically here for backward consistency since
        this 'all' provider is the same as the 'valid-user' provider. */
    /* If the argument to the 'all' provider is 'granted' then just let 
        everybody in. This would be equivalent to the previous syntax of
        'allow from all'. If the argument is anything else, this would
        be equivalent to 'deny from all' Of course the opposite would be 
        true if the 'all' provider is invoked by the 'reject' directive */
    if (strcasecmp(require_line, "granted") == 0) {
        return AUTHZ_GRANTED;
    }
    return AUTHZ_DENIED;
}

static const authz_provider authz_env_provider =
{