Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There was some bug in apacheds 2.0 - M15 Version regarding replication. That bug has been rectified already and the fix will be in M16. I built 2 separate instances from apacheds svn trunk and built the installers and ran 2 separate instances. Added following settings/config on the Provider/Master (Running on Port 10389) - </p> <pre><code>dn: ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config changetype: modify add: ads-replReqHandler ads-replReqHandler: org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler </code></pre> <p>Added following config to the consumer/slave instance (Running on 11389) - </p> <pre><code>dn: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config changetype: add ads-replRefreshNPersist: TRUE ads-replAliasDerefMode: never ads-replProvPort: 10389 ads-replSearchSizeLimit: 0 ads-replProvHostName: localhost objectClass: ads-replConsumer objectClass: ads-base ads-replUserDn: uid=admin, ou=system ads-replRefreshInterval: 60000 ads-replUserPassword: secret ads-replConsumerId: 1 ads-replAttributes: * ads-replSearchTimeOut: 0 ads-replSearchScope: sub ads-replSearchFilter: (objectClass=*) ads-searchBaseDN: ou=system </code></pre> <p>Restarted both instances and tried adding an entry under Provider and Wow ! it got replicated to the consumer.</p> <p>Though the configuration I have posted in the question is incorrect, couple of confusing things led to that configuration.</p> <ol> <li>Lack of clear documentation on apacheds website.</li> <li>Apache ds studio - When you create a connection in apache ds studio to connect to a apacheds service, you can right click on the connection and open its configuration (Which is stored under ou=config. Its basically a GUI for ou=config). When you click on the last tab 'Replication'. The title reads 'All Replication Consumers' with a 'Add' button placed on the right. This is misleading as it gives the user an impression that one needs to add consumer/slave details here and this config should lie on the master/provider side. </li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload