diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-02-08 22:24:54 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-02-10 13:54:39 -0500 |
commit | b77046d55089f52a060128bf6d78a5e7fe9161fd (patch) | |
tree | 64a8ad1b6f59cc5d0ec549a6acdc9472221bd1fd /install | |
parent | c187b276ad60e06be260899889628b7979f267e4 (diff) | |
download | freeipa-b77046d55089f52a060128bf6d78a5e7fe9161fd.tar.gz freeipa-b77046d55089f52a060128bf6d78a5e7fe9161fd.tar.xz freeipa-b77046d55089f52a060128bf6d78a5e7fe9161fd.zip |
Disable replication version plugin by default.
The 389-ds replication plugin may not be installed on all platforms
and our replication version plugin will cause 389-ds to not start
if it is loaded and the replication plugin is not. So disable by
default.
When a replica is prepared we check for the replication plugin.
If it exists we will enable the replication version plugin.
Likewise on installation of a replica we check for existence of
the repliation plugin and if it is there then we enable the version
plugin before replication begins.
ticket 918
Diffstat (limited to 'install')
-rwxr-xr-x | install/tools/ipa-replica-prepare | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index aaa1f2dc6..1b643099e 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -29,7 +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_reverse_zone, add_rr, add_ptr_rr -from ipaserver.install.replication import check_replication_plugin +from ipaserver.install.replication import check_replication_plugin, enable_replication_version_checking from ipaserver.plugins.ldap2 import ldap2 from ipapython import version from ipalib import api, errors, util @@ -296,6 +296,8 @@ def main(): sys.exit("\nUnable to connect to LDAP server %s" % api.env.host) print "Preparing replica for %s from %s" % (replica_fqdn, api.env.host) + enable_replication_version_checking(api.env.host, api.env.realm, + dirman_password) subject_base = get_subject_base(api.env.host, dirman_password, util.realm_to_suffix(api.env.realm)) |