]> granicus.if.org Git - apache/blob - modules/aaa/config.m4
mod_allowhandlers: New module to forbid specific handlers for specific
[apache] / modules / aaa / config.m4
1 dnl modules enabled in this directory by default
2
3 dnl Authentication (authn), Access, and Authorization (authz)
4
5 dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
6
7 APACHE_MODPATH_INIT(aaa)
8
9 dnl Authentication modules; modules checking a username and password against a
10 dnl file, database, or other similar magic.
11 dnl
12 APACHE_MODULE(authn_file, file-based authentication control, , , yes)
13 APACHE_MODULE(authn_dbm, DBM-based authentication control, , , most)
14 APACHE_MODULE(authn_anon, anonymous user authentication control, , , most)
15 APACHE_MODULE(authn_dbd, SQL-based authentication control, , , most)
16 APACHE_MODULE(authn_socache, Cached authentication control, , , most)
17
18 dnl General Authentication modules; module which implements the 
19 dnl non-authn module specific directives.
20 dnl
21 APACHE_MODULE(authn_core, core authentication module, , , yes)
22
23 dnl Authorization modules: modules which verify a certain property such as
24 dnl membership of a group, value of the IP address against a list of pre
25 dnl configured directives (e.g. require, allow) or against an external file
26 dnl or database.
27 dnl
28 APACHE_MODULE(authz_host, host-based authorization control, , , yes)
29 APACHE_MODULE(authz_groupfile, 'require group' authorization control, , , yes)
30 APACHE_MODULE(authz_user, 'require user' authorization control, , , yes)
31 APACHE_MODULE(authz_dbm, DBM-based authorization control, , , most)
32 APACHE_MODULE(authz_owner, 'require file-owner' authorization control, , , most)
33 APACHE_MODULE(authz_dbd, SQL based authorization and Login/Session support, , , most)
34
35 dnl General Authorization modules; provider module which implements the 
36 dnl non-authz module specific directives.
37 dnl
38 APACHE_MODULE(authz_core, core authorization provider vector module, , , yes)
39
40 dnl LDAP authentication module. This module has both the authn and authz
41 dnl modules in one, so as to share the LDAP server config directives.
42 APACHE_MODULE(authnz_ldap, LDAP based authentication, , , most, [
43   APACHE_CHECK_APR_HAS_LDAP
44   if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
45     if test -z "$apu_config" ; then
46       LDAP_LIBS="`$apr_config --ldap-libs`"
47     else
48       LDAP_LIBS="`$apu_config --ldap-libs`"
49     fi
50     APR_ADDTO(MOD_AUTHNZ_LDAP_LDADD, [$LDAP_LIBS])
51     AC_SUBST(MOD_AUTHNZ_LDAP_LDADD)
52   else
53     AC_MSG_WARN([apr/apr-util is compiled without ldap support])
54     enable_authnz_ldap=no
55   fi
56 ])
57
58 dnl - host access control compatibility modules. Implements Order, Allow,
59 dnl Deny, Satisfy for backward compatibility.  These directives have been
60 dnl deprecated in 2.4.
61 APACHE_MODULE(access_compat, mod_access compatibility, , , yes)
62
63 dnl these are the front-end authentication modules
64
65 APACHE_MODULE(auth_basic, basic authentication, , , yes)
66 APACHE_MODULE(auth_form, form authentication, , , most)
67 APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [
68   APR_CHECK_APR_DEFINE(APR_HAS_RANDOM)
69   if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
70     echo "You need APR random support to use mod_auth_digest."
71     echo "Look at APR configure options --with-egd and --with-devrandom."
72     enable_auth_digest="no"
73   fi
74 ])
75
76 APACHE_MODULE(allowmethods, restrict allowed HTTP methods, , , most)
77 APACHE_MODULE(allowhandlers, restrict allowed handlers, , , most)
78
79 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
80
81 APACHE_MODPATH_FINISH