Puppet Class: openldap::client
- Defined in:
- manifests/client.pp
Overview
Class: openldap::client
Set up /etc/openldap/ldap.conf with the global options for accessing the LDAP servers.
See ldap.conf(5) for details.
Regarding: POODLE - CVE-2014-3566
The tls_cipher_suite variable is set to HIGH:-SSLv2 because OpenLDAP cannot set the SSL provider natively. By default, it will run TLSv1 but cannot handle TLSv1.2 therefore the SSLv3 ciphers cannot be eliminated. Take care to ensure that your clients only connect with TLSv1 if possible.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'manifests/client.pp', line 16
class openldap::client (
$uri = hiera('ldap::uri'),
$base = hiera('ldap::base_dn'),
$bind_dn = hiera('ldap::bind_dn'),
$referrals = 'on',
$sizelimit = '0',
$timelimit = '15',
$deref = 'never',
$use_tls = true,
$tls_cacertdir = '/etc/pki/cacerts',
$tls_cert = "/etc/pki/public/${::fqdn}.pub",
$tls_key = "/etc/pki/private/${::fqdn}.pem",
$tls_cipher_suite = hiera('openssl::cipher_suite',['HIGH:-SSLv2']),
$tls_reqcert = 'allow',
$tls_crlcheck = 'none',
$tls_crlfile = ''
) {
include '::openldap'
file { '/etc/openldap/ldap.conf':
owner => 'root',
group => 'root',
mode => '0644',
content => template('openldap/etc/openldap/ldap.conf.erb')
}
# Set up root's ldaprc file.
file { '/root/.ldaprc':
owner => 'root',
group => 'root',
mode => '0600',
replace => false,
content => template('openldap/ldaprc.erb')
}
validate_array_member($referrals,['on','off'])
validate_integer($sizelimit)
validate_integer($timelimit)
validate_array_member($deref,['never','searching','finding','always'])
validate_absolute_path($tls_cacertdir)
validate_absolute_path($tls_cert)
validate_absolute_path($tls_key)
validate_array($tls_cipher_suite)
validate_array_member($tls_reqcert,['never','allow','try','demand','hard'])
validate_array_member($tls_crlcheck,['none','peer','all'])
if ! empty($tls_crlfile) { validate_absolute_path($tls_crlfile) }
compliance_map()
}
|