summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-11-21 14:44:42 +0100
committerMartin Kosek <mkosek@redhat.com>2013-11-22 08:47:57 +0100
commitca11a28cab0d3bcc4b92187f50b8de4178da4fce (patch)
treef2d4504e6fb5e9a8d355cf78eba81850b8373c6c
parentd2fbcd121eaeb56ab36da6b2f84c780e3af14125 (diff)
downloadfreeipa-ca11a28cab0d3bcc4b92187f50b8de4178da4fce.tar.gz
freeipa-ca11a28cab0d3bcc4b92187f50b8de4178da4fce.tar.xz
freeipa-ca11a28cab0d3bcc4b92187f50b8de4178da4fce.zip
trusts: Do not pass base-id to the subdomain ranges
For trusted domains base id is calculated using a murmur3 hash of the domain Security Identifier (SID). During trust-add we create ranges for forest root domain and other forest domains. Since --base-id explicitly overrides generated base id for forest root domain, its value should not be passed to other forest domains' ranges -- their base ids must be calculated based on their SIDs. In case base id change for non-root forest domains is required, it can be done manually through idrange-mod command after the trust is established. https://fedorahosted.org/freeipa/ticket/4041
-rw-r--r--ipalib/plugins/trust.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py
index 32a938343..5ba090503 100644
--- a/ipalib/plugins/trust.py
+++ b/ipalib/plugins/trust.py
@@ -375,6 +375,11 @@ sides.
passed_options = options
passed_options.update(range_type=created_range_type)
+ # Do not pass the base id to the subdomains since it would
+ # clash with the root level domain
+ if 'base_id' in passed_options:
+ del passed_options['base_id']
+
# Try to add the range for each subdomain
try:
self.add_range(range_name, dom_sid, *keys,