|
1 | 1 | class pamldap::config ( |
2 | 2 | $base_dn, |
3 | 3 | $uris, |
| 4 | + $domain, |
4 | 5 | ) { |
5 | 6 | $uris_space = join($uris, ' ') |
6 | 7 | $uris_comma = join($uris, ',') |
|
23 | 24 | require => Class['pamldap::install'], |
24 | 25 | notify => Class['pamldap::service'], |
25 | 26 | } |
26 | | - file { [ '/etc/ldap.conf', '/etc/openldap/ldap.conf' ]: |
| 27 | + file { '/etc/ldap.conf': |
27 | 28 | ensure => present, |
28 | 29 | mode => '0444', |
29 | 30 | content => template('pamldap/ldap.conf.erb'), |
30 | 31 | require => Class['pamldap::install'], |
31 | 32 | notify => Class['pamldap::service'], |
32 | 33 | } |
| 34 | + file { [ '/etc/pam_ldap.conf', '/etc/openldap/ldap.conf' ]: |
| 35 | + ensure => link, |
| 36 | + target => '/etc/ldap.conf', |
| 37 | + require => File['/etc/ldap.conf'], |
| 38 | + notify => Class['pamldap::service'], |
| 39 | + } |
33 | 40 | file { '/etc/sssd/sssd.conf': |
34 | 41 | ensure => present, |
35 | 42 | mode => '0600', |
36 | 43 | content => template('pamldap/sssd.conf.erb'), |
37 | 44 | require => Class['pamldap::install'], |
38 | 45 | notify => Class['pamldap::service'], |
39 | 46 | } |
| 47 | + file { '/etc/idmapd.conf': |
| 48 | + ensure => present, |
| 49 | + mode => '0644', |
| 50 | + content => template('pamldap/idmapd.conf.erb'), |
| 51 | + require => Class['pamldap::install'], |
| 52 | + notify => Class['pamldap::service'], |
| 53 | + } |
40 | 54 | } |
0 commit comments