/[Apache-SVN]
ViewVC logotype

Revision 368027


Jump to revision: Previous Next
Author: bnicholes
Date: Wed Jan 11 14:30:28 2006 UTC (18 years, 3 months ago)
Changed paths: 45
Log Message:
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.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-autoindex.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-dav.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-info.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-manual.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-multilang-errordoc.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/extra/httpd-userdir.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/conf/httpd.conf.in modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/developer/request.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/allmodules.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/core.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_auth_digest.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authn_alias.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authn_core.xml
(Copied from httpd/httpd/branches/authz-dev/docs/manual/mod/mod_authn_core.xml, r360213)
added
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authn_core.xml.meta
(Copied from httpd/httpd/branches/authz-dev/docs/manual/mod/mod_authn_core.xml.meta, r360213)
added
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authnz_ldap.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml
(Copied from httpd/httpd/branches/authz-dev/docs/manual/mod/mod_authz_core.xml, r360213)
added , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_core.xml.meta
(Copied from httpd/httpd/branches/authz-dev/docs/manual/mod/mod_authz_core.xml.meta, r360213)
added
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_dbd.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_dbm.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_groupfile.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_host.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_owner.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_authz_user.xml modified , text changed
Directoryhttpd/httpd/trunk/docs/manual/mod/mod_ldap.xml modified , text changed
Directoryhttpd/httpd/trunk/include/ap_mmn.h modified , text changed
Directoryhttpd/httpd/trunk/include/http_core.h modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/NWGNUauthncore
(Copied from httpd/httpd/branches/authz-dev/modules/aaa/NWGNUauthncore, r360213)
added
Directoryhttpd/httpd/trunk/modules/aaa/NWGNUauthzcore
(Copied from httpd/httpd/branches/authz-dev/modules/aaa/NWGNUauthzcore, r360213)
added
Directoryhttpd/httpd/trunk/modules/aaa/NWGNUmakefile modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/config.m4 modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_auth.h modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_auth_basic.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_core.c
(Copied from httpd/httpd/branches/authz-dev/modules/aaa/mod_authn_core.c, r360213)
added , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_default.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authnz_ldap.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_core.c
(Copied from httpd/httpd/branches/authz-dev/modules/aaa/mod_authz_core.c, r360213)
added , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_dbd.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_dbm.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_default.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_groupfile.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_host.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_owner.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authz_user.c modified , text changed
Directoryhttpd/httpd/trunk/server/core.c modified , text changed
Directoryhttpd/httpd/trunk/server/request.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26