Skip to content

Commit

Permalink
Merge pull request #1045 from mhaskel/rebase_978
Browse files Browse the repository at this point in the history
Allow includes necessary for basic authentication
  • Loading branch information
hunner committed Feb 26, 2015
2 parents 8b993ba + f134c39 commit ebc549c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,10 @@ There are many `apache::mod::[name]` classes within this module that can be decl
* `auth_basic`
* `auth_cas`* (see [`apache::mod::auth_cas`](#class-apachemodauthcas) below)
* `auth_kerb`
* `authn_file`
* `authnz_ldap`*
* `authz_default`
* `authz_user`
* `autoindex`
* `cache`
* `cgi`
Expand Down
7 changes: 4 additions & 3 deletions manifests/default_mods.pp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
}
}
include ::apache::mod::alias
include ::apache::mod::authn_file
include ::apache::mod::autoindex
include ::apache::mod::dav
include ::apache::mod::dav_fs
Expand All @@ -127,7 +128,6 @@
include ::apache::mod::negotiation
include ::apache::mod::setenvif
::apache::mod { 'auth_basic': }
::apache::mod { 'authn_file': }

if versioncmp($apache_version, '2.4') >= 0 {
# filter is needed by mod_deflate
Expand All @@ -141,11 +141,12 @@
# lots of stuff seems to break without access_compat
::apache::mod { 'access_compat': }
} else {
::apache::mod { 'authz_default': }
include ::apache::mod::authz_default
}

include ::apache::mod::authz_user

::apache::mod { 'authz_groupfile': }
::apache::mod { 'authz_user': }
::apache::mod { 'env': }
} elsif $mods {
::apache::default_mods::load { $mods: }
Expand Down
3 changes: 3 additions & 0 deletions manifests/mod/authn_file.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class apache::mod::authn_file {
::apache::mod { 'authn_file': }
}
3 changes: 3 additions & 0 deletions manifests/mod/authz_default.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class apache::mod::authz_default {
::apache::mod { 'authz_default': }
}
3 changes: 3 additions & 0 deletions manifests/mod/authz_user.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class apache::mod::authz_user {
::apache::mod { 'authz_user': }
}

0 comments on commit ebc549c

Please sign in to comment.