Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-2458) Support for mod_auth_mellon. #1189

Merged
merged 1 commit into from Aug 27, 2015
Merged

(MODULES-2458) Support for mod_auth_mellon. #1189

merged 1 commit into from Aug 27, 2015

Conversation

traylenator
Copy link
Contributor

mod_auth_melon is an authentication module
for apache. Configurations such as the following
are now supported.

class{'apache':
      default_mods        => false,
      default_confd_files => false,
      default_vhost       => false,
}
class{'apache::mod::auth_mellon':
     mellon_cache_size => 101
}
apache::vhost{$::fqdn:
  docroot => '/var/www/html',
  port    => 443,
  ssl     => true,
  ssl_key => "/etc/certs/${::fqdn}.key",
  ssl_cert => "/etc/certs/${::fqdn}.cert",
  directories => [
      {  path           => '/',
         provider       => 'directory',
         mellon_enable  => 'info',
         mellon_merge_env_vars => 'On',
         mellon_endpoint_path => '/mellon',
         mellon_sp_private_key_file => "/etc/certs/${::fqdn}.key",
         mellon_sp_cert_file => "/etc/certs/${::fqdn}.cert",
         mellon_idp_metadata_file => "/etc/httpd/conf.d/mellon/FederationMetadata.xml",
         mellon_set_env_no_prefix => { "user" => "http://schemas.xmlsoap.org/claims/UPN",
                                   "ADFS_GROUP" => "http://schemas.xmlsoap.org/claims/Group",
                                   "ADFS_EMAIL" => "http://schemas.xmlsoap.org/claims/EmailAddress"},
         mellon_user => 'ADFS_LOGIN',
      },
      { path => '/protected',
        provider => 'location',
        auth_type => 'Mellon',
        auth_require => 'valid-user',
        mellon_enable => 'auth',
        mellon_cond => ['ADFS_LOGIN straylen [MAP]']
      },
  ]
}

mod_auth_melon is an authentication module
for apache. Configurations such as the following
are now supported.

```puppet
class{'apache':
      default_mods        => false,
      default_confd_files => false,
      default_vhost       => false,
}
class{'apache::mod::auth_mellon':
     mellon_cache_size => 101
}
apache::vhost{$::fqdn:
  docroot => '/var/www/html',
  port    => 443,
  ssl     => true,
  ssl_key => "/etc/certs/${::fqdn}.key",
  ssl_cert => "/etc/certs/${::fqdn}.cert",
  directories => [
      {  path           => '/',
         provider       => 'directory',
         mellon_enable  => 'info',
         mellon_merge_env_vars => 'On',
         mellon_endpoint_path => '/mellon',
         mellon_sp_private_key_file => "/etc/certs/${::fqdn}.key",
         mellon_sp_cert_file => "/etc/certs/${::fqdn}.cert",
         mellon_idp_metadata_file => "/etc/httpd/conf.d/mellon/FederationMetadata.xml",
         mellon_set_env_no_prefix => { "user" => "http://schemas.xmlsoap.org/claims/UPN",
                                   "ADFS_GROUP" => "http://schemas.xmlsoap.org/claims/Group",
                                   "ADFS_EMAIL" => "http://schemas.xmlsoap.org/claims/EmailAddress"},
         mellon_user => 'ADFS_LOGIN',
      },
      { path => '/protected',
        provider => 'location',
        auth_type => 'Mellon',
        auth_require => 'valid-user',
        mellon_enable => 'auth',
        mellon_cond => ['ADFS_LOGIN straylen [MAP]']
      },
  ]
}

```
underscorgan pushed a commit that referenced this pull request Aug 27, 2015
(MODULES-2458) Support for mod_auth_mellon.
@underscorgan underscorgan merged commit 4a2b0db into puppetlabs:master Aug 27, 2015
@underscorgan
Copy link
Contributor

Thanks @traylenator !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants