viernes, 22 de agosto de 2014

LDAP Replication with syncrepl on Linux

Fuente Original: http://wiki.unixh4cks.com/index.php/OpenLDAP_:_LDAP_Replication_with_syncrepl_on_Centos_5.x


Configure master (provider)

[root@openldap_a ~]# tail -n 5 /etc/openldap/slapd.conf 

overlay syncprov
syncprov-checkpoint 1 10
syncprov-sessionlog 100

Configure slave (consumer)

[root@openldap_c ~]# tail -n 10 /etc/openldap/slapd.conf 

syncrepl rid=1
        provider=ldap://openldap_a.unixh4cks.com
        type=refreshAndPersist
        searchbase="dc=unixh4cks,dc=com"
        schemachecking=off
        bindmethod=simple
        binddn="cn=Manager,dc=unixh4cks,dc=com"
        credentials=secret
updateref ldap://openldap_a.unixh4cks.com.com/
[root@openldap_c ~]#