summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-install
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-11-11 18:15:28 -0500
committerAdam Young <ayoung@redhat.com>2010-11-22 12:42:16 -0500
commit6a5c4763afad6fec2b49ffadbca9628a7ed162d5 (patch)
treed3f4016a9c25f63a205e39d53eebcec5e0c35e38 /install/tools/ipa-replica-install
parent61e2016ee3e52d938557c0bed0248476555b0afa (diff)
downloadfreeipa-6a5c4763afad6fec2b49ffadbca9628a7ed162d5.tar.gz
freeipa-6a5c4763afad6fec2b49ffadbca9628a7ed162d5.tar.xz
freeipa-6a5c4763afad6fec2b49ffadbca9628a7ed162d5.zip
id ranges: change DNA configuration
Change the way we specify the id ranges to force uid and gid ranges to always be the same. Add option to specify a maximum id. Change DNA configuration to use shared ranges so that masters and replicas can actually share the same overall range in a safe way. Configure replicas so that their default range is depleted. This will force them to fetch a range portion from the master on the first install. fixes: https://fedorahosted.org/freeipa/ticket/198
Diffstat (limited to 'install/tools/ipa-replica-install')
-rwxr-xr-xinstall/tools/ipa-replica-install8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index fb6dd46fb..e58a1f3f1 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -176,7 +176,13 @@ def install_ds(config):
config.dir + "/dirsrv_pin.txt")
ds = dsinstance.DsInstance()
- ds.create_instance(config.ds_user, config.realm_name, config.host_name, config.domain_name, config.dirman_password, pkcs12_info)
+ # idstart and idmax are configured so that the range is seen as depleted
+ # by the DNA plugin and the replica will go and get a new range from the
+ # master.
+ # This way all servers use the initially defined range by default.
+ ds.create_instance(config.ds_user, config.realm_name, config.host_name,
+ config.domain_name, config.dirman_password,
+ pkcs12_info, idstart=1101, idmax=1100)
return ds