aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/manifests/slave.pp
blob: bbc65f4836684098eaf53b652a8b9ca40f94647a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class openldap::slave($rid) inherits openldap {

    @@openldap::exported_slave { $rid: }

    $sync_password = extlookup("ldap_syncuser-${::hostname}",'x')

    # same access rights as master
    Openldap::Config['/etc/openldap/mandriva-dit-access.conf'] {
        content => template('openldap/mandriva-dit-access.conf'),
    }

    Openldap::Config['/etc/openldap/slapd.conf'] {
        content => template('openldap/slapd.conf','openldap/slapd.syncrepl.conf'),
    }

    Openldap::Config['/etc/sysconfig/ldap'] {
        content => template('openldap/ldap-slave.sysconfig'),
    }
}