Wednesday, 28 August 2013

How to setup replication on apache directory server

How to setup replication on apache directory server

I have 2 apacheds services running on workstation (Windows 7). One of the
service runs as a windows service and the other one I am running from its
jar file from command line using
java -jar "C:\Program Files (x86)\ApacheDS -
Instance2\lib\apacheds-service-2.0.0-M15.jar" "C:\Program Files
(x86)\ApacheDS - Instance2\instances\instance2"
The first apacheds installation is at location C:\Program Files
(x86)\ApacheDS and it runs on 10389. The second service runs on port
11389. Using apache directory studio I can connect to both these
instances/services running on my workstation and there are no errors on
console. By using the following ldif file I have imported setting for
Instance 1 which will be the master
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
Then I have also imported following ldif file to Instance 1/master -
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
I added a few users under ou=users, ou=system on the master but nothing
gets replicated on the slave. There is no evidence on the consoles of
either instances that these two instances are trying to talk and hence I
think this is not the right configuration or incomplete configuration as
there is nothing I could find on apacheds documentation that needs to be
added as part of the consumer configuration on Instance2/Slave. Am I
missing something ?
Thanks !

No comments:

Post a Comment