You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2014/10/12 20:22:26 UTC
svn commit: r1631235 -
/directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext
Author: kayyagari
Date: Sun Oct 12 18:22:26 2014
New Revision: 1631235
URL: http://svn.apache.org/r1631235
Log:
master-slave replication configuration (not yet complete)
Modified:
directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext
Modified: directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext?rev=1631235&r1=1631234&r2=1631235&view=diff
==============================================================================
--- directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext (original)
+++ directory/site/trunk/content/apacheds/advanced-ug/5.4-replication.mdtext Sun Oct 12 18:22:26 2014
@@ -26,4 +26,46 @@ Notice: Licensed to the Apache Software
## 5.4.1 Replication overview
-TODO...
\ No newline at end of file
+ApacheDS supports both Master-Slave and Multi-Master replication based on the [syncrepl](http://tools.ietf.org/html/rfc4533) specification.
+
+## Initial steps
+
+The below initial conditions must be met before configuring the replication in any mode.
+
+* Make sure all the servers are up and running
+
+* Add the configuration of the partition whose data needs to be replicated.
+ For example if we like to replicate the partition dc=apache,dc=org then
+ make sure to configure this partition in all the servers that are configured to replicate.
+ See [Adding Partition](../basic-ug/1.4.3-adding-partition.mdtext)
+
+
+## Configuring Master-Slave replication
+
+Assuming that the master is running on localhost at port 10389 and slave on localhost at port 11997 and we want to
+replicate the data from partition dc=apache,dc=org
+
+The below configuration must be added in the slave server and restart slave.
+
+ dn: ads-replConsumerId=consumer1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
+ ads-replconsumerid: consumer1
+ ads-replstrictcertvalidation: FALSE
+ ads-replusetls: FALSE
+ ads-replsearchtimeout: 0
+ ads-replsearchfilter: (objectClass=*)
+ ads-replsearchsizelimit: 0
+ ads-replattributes: *
+ ads-replrefreshinterval: 60000
+ ads-repluserpassword: secret
+ ads-repluserdn: uid=admin,ou=system
+ ads-replprovport: 10389
+ ads-replprovhostname: localhost
+ ads-replrefreshnpersist: TRUE
+ ads-replsearchscope: sub
+ ads-searchbasedn: dc=example,dc=com
+ ads-enabled: TRUE
+ objectclass: ads-replConsumer
+ objectclass: ads-base
+ objectclass: top
+ ads-replaliasderefmode: never
+