Puppet Class: bsdauth::ldap

Inherits:
::bsdauth::params
Defined in:
manifests/ldap.pp

Overview

Manages LDAP login classes.

Examples:

Declaring the class

include ::bsdauth
include ::bsdauth::ldap

Parameters:

  • classes (Hash[String, Hash[String, Any]]) (defaults to: {})

    A hash of LDAP login classes to create using ::bsdauth::ldap::class.

  • package_name (String) (defaults to: $::bsdauth::params::ldap_package_name)

    The package name.

See Also:



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/ldap.pp', line 13

class bsdauth::ldap (
  Hash[String, Hash[String, Any]] $classes      = {},
  String                          $package_name = $::bsdauth::params::ldap_package_name,
) inherits ::bsdauth::params {

  if ! defined(Class['::bsdauth']) {
    fail('You must include the bsdauth base class before using the bsdauth::ldap class')
  }

  contain ::bsdauth::ldap::install
  contain ::bsdauth::ldap::config

  Class['::bsdauth::ldap::install'] -> Class['::bsdauth::ldap::config']
}