1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-09 15:21:02 +03:00
Commit Graph

46 Commits

Author SHA1 Message Date
Christophe Jaillet
bd45884740 If several parameters are used in a AuthzProviderAlias directive, if these parameters are not enclosed in quotation mark, only the first one is handled. The other ones are silently ignored.
Add a message to warn about such a spurious configuration.
PR 62469

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1834209 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 14:17:26 +00:00
Christophe Jaillet
adf6ef9e62 Explain when the surrounding double quotes arround the expr argument MUST be avoided.
Fix an example to add these surrounding quotes to be consistent and in line with 2.4.x

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829390 13f79535-47bb-0310-9956-ffa450edef68
2018-04-17 19:33:27 +00:00
Christophe Jaillet
f8d30e13ec Fix some syntax highlight
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1814035 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 06:59:35 +00:00
Jacob Champion
f429387652 override index: update missing <override>s in directives
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1793934 13f79535-47bb-0310-9956-ffa450edef68
2017-05-04 23:41:19 +00:00
Ken Coar
0566cf0f31 Simply remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673947 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 20:16:24 +00:00
Ken Coar
a90c8fdafb Following up on BZ 53530.. putting quotation marks around
arbitrary-text, complex, and/or filesystem directive arguments.
More to do..


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673582 13f79535-47bb-0310-9956-ffa450edef68
2015-04-14 23:35:26 +00:00
Eric Covener
19de340ec4 use an actual list since we're gong to the trouble to use -in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642590 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 18:22:10 +00:00
Eric Covener
1d9eee8e99 add a few more examples per feedback
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642584 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 18:16:27 +00:00
Mike Rumph
81d19314f9 Remove redundant paragraph and fix grammar errors.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1600383 13f79535-47bb-0310-9956-ffa450edef68
2014-06-04 17:39:03 +00:00
Ben Reser
c26062eb30 Fix our documentation to not show the expression in Require expr as quoted.
Since r1585609 the quoted syntax is ok, but it won't be as efficient so we
probably shouldn't put that syntax in the documentation.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585611 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 22:50:14 +00:00
Eric Covener
993ff2d4f5 add some information about setenvif vs. subrequests for PR55957
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1556102 13f79535-47bb-0310-9956-ffa450edef68
2014-01-07 01:55:33 +00:00
Vincent Deffontaines
3198873ede [trunk][doc] mod/mod_authz_core : Re-ordering sections so the essential is stated first
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1553469 13f79535-47bb-0310-9956-ffa450edef68
2013-12-26 11:36:40 +00:00
Rich Bowen
b5dae5e0bb Encourage best practice of putting complex arguments in quotes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481359 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 15:51:24 +00:00
Rich Bowen
9c91cef839 That's a separate doc now.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1449518 13f79535-47bb-0310-9956-ffa450edef68
2013-02-24 18:15:57 +00:00
Daniel Gruno
0743cdedd0 fix one more link
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434108 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 18:54:45 +00:00
Daniel Gruno
f165c3eae6 fix links
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434105 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 18:50:58 +00:00
Eric Covener
90746d67e9 caution about merging Location settings on top of directory/files authz config
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425345 13f79535-47bb-0310-9956-ffa450edef68
2012-12-22 21:16:09 +00:00
Eric Covener
de0b120a23 Use integer operators when comparing to TIME_HOUR
Reported by Florian in comment#124.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1362506 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 14:23:56 +00:00
Stefan Fritsch
d49f5e2935 If an expression in "Require expr" returns denied and
references %{REMOTE_USER}, trigger authentication and retry

PR: 52892


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351072 13f79535-47bb-0310-9956-ffa450edef68
2012-06-17 08:39:45 +00:00
Daniel Gruno
a3d2bba55b Syntax for mod_a*.xml and MPMs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330911 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 15:47:56 +00:00
Rich Bowen
9dba921251 Adds an example from authz_host. We already mentioned it, but it's a
pretty common example, and good to mention here.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1300065 13f79535-47bb-0310-9956-ffa450edef68
2012-03-13 10:47:56 +00:00
Rich Bowen
31404895f2 Patch from Description Mathijs Schmittmann - Corrected syntax for && (vs &) expression. Refs https://issues.apache.org/bugzilla/show_bug.cgi?id=51976
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1179614 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 13:14:25 +00:00
Jim Jagielski
69c1a5c854 Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174747 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:36:39 +00:00
Stefan Fritsch
ff06d3078c Add some links and bits to the ap_expr docs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1073543 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 23:17:50 +00:00
Rich Bowen
5995814d9b Removes another instance of the "Allow from all" syntax.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1071218 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 12:11:41 +00:00
André Malo
12ef4855bd add security warning about the new AuthzSendForbiddenOnFailure directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1050700 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 19:56:54 +00:00
Stefan Fritsch
e4603be7f5 Add new AuthzSendForbiddenOnFailure directive to allow sending '403 FORBIDDEN'
instead of '401 UNAUTHORIZED' if authorization fails for an authenticated user

PR: 40721


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1050677 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 17:11:14 +00:00
Stefan Fritsch
b2a906c8af add a bit of doc for the new authz providers
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003180 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 17:37:55 +00:00
Stefan Fritsch
3ecb593365 Move all, env, and method authz providers from mod_authz_host to mod_authz_core
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001200 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 12:01:14 +00:00
Lucien Gentis
791d761324 Small typo.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728695 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 13:58:28 +00:00
Chris Darroch
e884a28162 Documentation revisions for r726082.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728126 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 19:57:02 +00:00
Ruediger Pluem
71dfce9eec * Digest providers works as well.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709862 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 11:10:12 +00:00
Ruediger Pluem
b721405124 * Fix typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709861 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 11:08:34 +00:00
Chris Darroch
66b8ffda5e Documentation revisions for r709838 and r709839.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709841 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 04:28:02 +00:00
Eric Covener
99496bf501 Fix AuthzMergeRules directive name and an addl typo.
Submitted by Dan Poirier <poirier pobox.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@703266 13f79535-47bb-0310-9956-ffa450edef68
2008-10-09 21:26:56 +00:00
Vincent Bray
abe71efea4 Pet peeve: fix capitalisation of 'Require' directive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@635137 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 02:31:41 +00:00
Bradley Nicholes
108c5129b2 Document the RequireAlias block directive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@619497 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 16:45:11 +00:00
Bradley Nicholes
e6d2a7d4df revert the definitive bit for the reject directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428800 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 17:56:50 +00:00
Bradley Nicholes
601c29aedc fix typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428163 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 21:50:08 +00:00
Bradley Nicholes
fecc476d87 fix a typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427783 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:05:48 +00:00
Bradley Nicholes
6b831e7059 Converted the reject directive to be definitive and enabled directory_merge to merge all of the authorization rules and logic.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427780 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 22:54:38 +00:00
Roy T. Fielding
44fa6e0073 update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420990 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:55:32 +00:00
Colm MacCarthaigh
dd95d7c37c Update the copyright year in all .c, .h and .xml files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00
André Malo
f9fba91054 don't use &nbsp; in configuration code that might be copy and pasted and cannot
be interpreted correctly by the httpd


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@378577 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 17:39:47 +00:00
André Malo
bd1e90ea81 Fix properties, add missing transformed files and update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@369240 13f79535-47bb-0310-9956-ffa450edef68
2006-01-15 17:57:12 +00:00
Bradley Nicholes
9fed4c73d7 Authz refactoring
Merge from branches/authz-dev

Basically here is a list of what has been done:
- Convert all of the authz modules from hook based to provider based
- Remove the ap_requires field from the core_dir_config structure
- Remove the function ap_requires() since its functionality is no
longer supported or necessary in the refactoring
- Remove the calls to ap_some_auth_required() in the core request
handling to allow the  hooks to be called in all cases.
- Add the new module mod_authz_core which will act as the authorization
provider vector and contain common authz directives such as 'Require',
'Reject' and  '<RequireAlias>'
- Add the new module mod_authn_core which will contain common
authentication directives such as 'AuthType', 'AuthName' and
'<AuthnProviderAlias>'
- Move the check for METHOD_MASK out of the authz providers and into
the authz_core provider vector
- Define the status codes that can be returned by the authz providers
as AUTHZ_DENIED,  AUTHZ_GRANTED and AUTHZ_GENERAL_ERROR   
- Remove the 'Satisfy' directive 
- Implement the '<RequireAll>', '<RequireOne>' block directives  to
handle the 'and' and 'or' logic for authorization.
- Remove the 'AuthzXXXAuthoritative' directives from all of the authz
providers
- Implement the 'Reject' directive that will deny authorization if the
argument is true
- Fold the 'Reject' directive into the '<RequireAll>', '<RequireOne>'
logic
- Reimplement the host based authorization functionality provided by 
'allow', 'deny' and 'order' as authz providers   
- Remove the 'allow', 'deny' and 'order' directives      
- Merge mod_authn_alias into mod_authn_core
- Add '<RequireAlias>' functionality which is similar to
'<AuthnProviderAlias>' but specific to authorization aliasing
- Remove all of the references to the 'authzxxxAuthoritative'
directives from the documentation
- Remove the 'Satisfy' directive from the documentation
- Remove 'Allow', 'Deny', 'Order' directives from the documentation
- Document '<RequireAll>', '<RequireOne>', 'Reject' directives
- Reimplement the APIs ap_auth_type(), ap_auth_name() as optional
functions and move the  actual implementation into mod_authn_core
- Reimplement the API ap_some_auth_required() as an optional function
and move the  actual implementation into mod_authz_core

Major Changes:
- Added the directives <RequireAll>, <RequireOne>, <RequireAlias>,
Reject
- Expanded the functionality of the directive 'Require' to handle all
authorization and access control
- Added the new authz providers 'env', 'ip', 'host', 'all' to handle
host-based access control
- Removed the directives 'Allow', 'Deny', 'Order', 'Satisfy',
'AuthzXXXAuthoritative'
- Removed the ap_require() API
- Moved the directives 'AuthType', 'AuthName' out of mod_core and into
mod_authn_core
- Moved the directive 'Require' out of mod_core and into
mod_authz_core
- Merged mod_authn_alias into mod_authn_core
- Renamed mod_authz_dbm authz providers from 'group' and 'file-group'
to 'dbm-group' and 'dbm-file-group'

Benefits:
- All authorization and access control is now handle through two
directives, 'Require' and 'Reject'
- Authorization has been expanded to allow for complex 'AND/OR' control
logic through the directives '<RequireAll>' and '<RequireOne>'
- Configuration is now much simpler and consistent across the board
- Other modules like mod_ssl and mod_proxy should be able to plug into
and take advantage of  the same provider based authorization mechanism
by implementing their own providers

Issues:
- Backwards compatibility between 2.2 and 2.3 configurations will be
broken in the area  of authorization and access control due to the fact
that the directives 'allow', 'deny',  'order' and 'satisfy' have been
removed.  When moving from 2.2 to 2.3 these directives  will have to be
changed to 'Require all granted', 'Require all denied' or some variation
 of the authz host-based providers.
- Existing third party authorization modules will have to adapt to the
new structure.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@368027 13f79535-47bb-0310-9956-ffa450edef68
2006-01-11 14:30:28 +00:00