Puppet Class: openldap::slapo::lastbind

Defined in:
manifests/slapo/lastbind.pp

Overview

Class: openldap::slapo::lastbind

This class configures lastbind and set up a dynamic include that defines lastbind. See slapo-lastbind(5) for details of the options.

Parameters

lastbind_precision

String. Determines the amount of time, in seconds, after which to update the auth timestamp entry.

Authors

  • Nick Markowski <nmarkowski@keywcorp.com>

  • Kendall Moore <kmoore@keywcorp.com>

Parameters:

  • lastbind_precision (Any) (defaults to: '3600')


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/slapo/lastbind.pp', line 17

class openldap::slapo::lastbind (
# $lastbind_precision
#     The value <in seconds> after which to update the authTimestamp
    $lastbind_precision = '3600'
) {
  include 'openldap::server::dynamic_includes'

  file { '/etc/openldap/lastbind.conf':
    owner   => 'root',
    group   => 'ldap',
    mode    => '0640',
    content => "lastbind-precision ${lastbind_precision}\n",
    require => Package['simp-lastbind']
  }

  openldap::server::dynamic_includes::add { 'lastbind':
    order   => '1000',
    content => "moduleload lastbind.so\noverlay lastbind\n",
    require => Package['simp-lastbind']
  }

  package { 'simp-lastbind': ensure => 'latest' }
}