Defined Type: openldap::configuration
- Defined in:
- manifests/configuration.pp
Overview
Handles creating global or per-user LDAP client configuration.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'manifests/configuration.pp', line 51
define openldap::configuration (
Enum['file', 'present', 'absent'] $ensure,
Variant[String[1], Integer[0]] $owner,
Variant[String[1], Integer[0]] $group,
String $mode,
Stdlib::Absolutepath $file = $title,
Optional[Bodgitlib::LDAP::DN] $base = undef,
Optional[Array[Bodgitlib::LDAP::URI::Simple, 1]] $uri = undef,
Optional[Bodgitlib::LDAP::DN] $binddn = undef,
Optional[Enum['never', 'searching', 'finding', 'always']] $deref = undef,
Optional[Integer[0]] $network_timeout = undef,
Optional[Boolean] $referrals = undef,
Optional[Integer[0]] $sizelimit = undef,
Optional[Integer[0]] $timelimit = undef,
Optional[Integer[0]] $timeout = undef,
# sasl
Optional[String] $sasl_mech = undef,
Optional[String] $sasl_realm = undef,
Optional[String] $sasl_authcid = undef,
Optional[String] $sasl_authzid = undef,
Optional[Array[String, 1]] $sasl_secprops = undef,
Optional[Boolean] $sasl_nocanon = undef,
# gssapi
Optional[Boolean] $gssapi_sign = undef,
Optional[Boolean] $gssapi_encrypt = undef,
Optional[Boolean] $gssapi_allow_remote_principal = undef,
# tls
Optional[Stdlib::Absolutepath] $tls_cacert = undef,
Optional[Stdlib::Absolutepath] $tls_cacertdir = undef,
Optional[Stdlib::Absolutepath] $tls_cert = undef,
Optional[Stdlib::Absolutepath] $tls_key = undef,
Optional[String] $tls_cipher_suite = undef,
Optional[Variant[Integer[0], Float[0]]] $tls_protocol_min = undef,
Optional[Stdlib::Absolutepath] $tls_randfile = undef,
Optional[Enum['never', 'allow', 'try', 'demand', 'hard']] $tls_reqcert = undef,
Optional[Enum['none', 'peer', 'all']] $tls_crlcheck = undef,
Optional[Stdlib::Absolutepath] $tls_crlfile = undef,
) {
if ! defined(Class['::openldap']) {
fail('You must include the openldap base class before using any openldap defined resources')
}
file { $file:
ensure => $ensure,
owner => $owner,
group => $group,
mode => $mode,
content => template("${module_name}/ldap.conf.erb"),
}
}
|