Defined Type: yp::ldap::directory
- Defined in:
- manifests/ldap/directory.pp
Overview
Define an LDAP directory for ypldap
to poll.
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 65 66 67 68 69 70 71 72 |
# File 'manifests/ldap/directory.pp', line 31
define yp::ldap::directory (
Bodgitlib::Host $server,
Bodgitlib::LDAP::DN $base_dn = $title,
Optional[Bodgitlib::LDAP::DN] $bind_dn = undef,
Optional[String] $bind_pw = undef,
Hash[YP::LDAP::Attribute, String] $fixed_attributes = {
'passwd' => '*',
'change' => '0',
'expire' => '0',
'class' => 'ldap',
'grouppasswd' => '*',
},
Optional[Bodgitlib::LDAP::DN] $group_dn = undef,
Bodgitlib::LDAP::Filter $group_filter = '(objectClass=posixGroup)',
Hash[YP::LDAP::Attribute, String] $ldap_attributes = {
'name' => 'uid',
'uid' => 'uidNumber',
'gid' => 'gidNumber',
'gecos' => 'cn',
'home' => 'homeDirectory',
'shell' => 'loginShell',
'groupname' => 'cn',
'groupgid' => 'gidNumber',
},
Hash[YP::LDAP::Attribute, String] $list_attributes = {
'groupmembers' => 'memberUid',
},
Optional[Enum['tls', 'ldaps']] $mode = undef,
Optional[Bodgitlib::Port] $port = undef,
Bodgitlib::LDAP::Filter $user_filter = '(objectClass=posixAccount)',
) {
if ! defined(Class['yp::ldap']) {
fail('You must include the yp::ldap base class before using any yp::ldap defined resources')
}
::concat::fragment { "${::yp::ldap::conf_file} ${base_dn}":
order => '10',
content => template("${module_name}/ypldap.conf.directory.erb"),
target => $::yp::ldap::conf_file,
}
}
|