1 |
class openldap::common { |
2 |
package { 'openldap-servers': } |
3 |
|
4 |
service { 'ldap': |
5 |
subscribe => Package['openldap-servers'], |
6 |
require => Openssl::Self_signed_cert["ldap.$::domain"], |
7 |
} |
8 |
|
9 |
exec { '/etc/init.d/ldap check': |
10 |
refreshonly => true, |
11 |
notify => Service['ldap'], |
12 |
} |
13 |
|
14 |
file { '/etc/ssl/openldap/': |
15 |
ensure => directory, |
16 |
} |
17 |
|
18 |
openssl::self_signed_cert{ "ldap.$::domain": |
19 |
directory => '/etc/ssl/openldap/', |
20 |
} |
21 |
|
22 |
openldap::config { |
23 |
'/etc/openldap/slapd.conf': |
24 |
content => ''; |
25 |
'/etc/openldap/mandriva-dit-access.conf': |
26 |
content => ''; |
27 |
'/etc/sysconfig/ldap': |
28 |
content => ''; |
29 |
} |
30 |
} |