summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-prepare
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-12-13 14:28:11 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-17 17:31:19 -0500
commit1600146c942eedcbeb4f67537ee35d1e73c46b24 (patch)
treef3635700a6ba229b7cfed7fb135211629beeb248 /install/tools/ipa-replica-prepare
parent358b28398cad150d6aab873a2d998211bf31d335 (diff)
downloadfreeipa.git-1600146c942eedcbeb4f67537ee35d1e73c46b24.tar.gz
freeipa.git-1600146c942eedcbeb4f67537ee35d1e73c46b24.tar.xz
freeipa.git-1600146c942eedcbeb4f67537ee35d1e73c46b24.zip
Verify that the replication plugin exists before setting up replicas.
ticket 502
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-xinstall/tools/ipa-replica-prepare3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare
index b9e3425e..9d7a14b8 100755
--- a/install/tools/ipa-replica-prepare
+++ b/install/tools/ipa-replica-prepare
@@ -29,6 +29,7 @@ from optparse import OptionParser
from ipapython import ipautil
from ipaserver.install import bindinstance, dsinstance, installutils, certs
from ipaserver.install.bindinstance import add_zone, add_reverze_zone, add_rr, add_ptr_rr
+from ipaserver.install.replication import check_replication_plugin
from ipaserver.plugins.ldap2 import ldap2
from ipapython import version
from ipalib import api, errors, util
@@ -228,6 +229,8 @@ def get_dirman_password():
return installutils.read_password("Directory Manager (existing master)", confirm=False, validate=False)
def main():
+ if not check_replication_plugin():
+ sys.exit(1)
options, args = parse_options()
replica_fqdn = args[0]