summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-29 13:37:15 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-29 17:09:48 -0400
commitb7f338f2c939c3c145bb440b4d469097c795699c (patch)
treee506e8036ed649ff40382f968d358f55113a6deb /ipa-server/ipa-install
parenta05f57f528c733f687eaf27d0cbd9b182867b24a (diff)
downloadfreeipa-b7f338f2c939c3c145bb440b4d469097c795699c.tar.gz
freeipa-b7f338f2c939c3c145bb440b4d469097c795699c.tar.xz
freeipa-b7f338f2c939c3c145bb440b4d469097c795699c.zip
Ensure that every replica gets a unique replication ID. Otherwise changes won't propogate between all replicas.
468732
Diffstat (limited to 'ipa-server/ipa-install')
-rw-r--r--ipa-server/ipa-install/ipa-replica-install3
-rw-r--r--ipa-server/ipa-install/updates/replication.update9
2 files changed, 11 insertions, 1 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-install b/ipa-server/ipa-install/ipa-replica-install
index 0b6727e22..ce598853c 100644
--- a/ipa-server/ipa-install/ipa-replica-install
+++ b/ipa-server/ipa-install/ipa-replica-install
@@ -249,7 +249,8 @@ def main():
try:
repl = replication.ReplicationManager(config.host_name, config.dirman_password)
ret = repl.setup_replication(config.master_host_name, config.realm_name)
- except:
+ except Exception, e:
+ logging.debug("Connection error: %s" % e)
raise RuntimeError("Unable to connect to LDAP server %s." % config.host_name)
if ret != 0:
raise RuntimeError("Failed to start replication")
diff --git a/ipa-server/ipa-install/updates/replication.update b/ipa-server/ipa-install/updates/replication.update
new file mode 100644
index 000000000..29823a6fa
--- /dev/null
+++ b/ipa-server/ipa-install/updates/replication.update
@@ -0,0 +1,9 @@
+#
+# Counter used to store the next replica id
+#
+# Start at 3 to avoid conflicts with v1.0 replica ids. The value itself
+# isn't important but each replica needs a unique id.
+dn: cn=replication,cn=etc,$SUFFIX
+add: objectclass: nsDS5Replica
+add: nsDS5ReplicaId: 3
+add: nsDS5ReplicaRoot: '$SUFFIX'