summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-server-install
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-09-18 12:56:00 +0200
committerMartin Kosek <mkosek@redhat.com>2013-10-03 12:02:44 +0200
commitbae291def780c81144c8f4d71ced5007e1ee3867 (patch)
treef6198a44c518552f95b32e48354f21b7447341a3 /install/tools/ipa-server-install
parent8ebb76177dbe675b281a4c06fabd4d27b2dffd7c (diff)
downloadfreeipa-bae291def780c81144c8f4d71ced5007e1ee3867.tar.gz
freeipa-bae291def780c81144c8f4d71ced5007e1ee3867.tar.xz
freeipa-bae291def780c81144c8f4d71ced5007e1ee3867.zip
Warn user about realm-domain mismatch in install scripts
If the IPA server is setup with non-matching domain and realm names, it will not be able to estabilish trust with the Active Directory. Adds warnings to the ipa-server-install and warning to the ipa-adtrust-install (which has to be confirmed). Man pages for the ipa-server-install and ipa-adtrust-install were updated with the relevant notes. https://fedorahosted.org/freeipa/ticket/3924
Diffstat (limited to 'install/tools/ipa-server-install')
-rw-r--r--install/tools/ipa-server-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 028cca097..cf8d3d01b 100644
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -968,6 +968,17 @@ def main():
or reverse_zone is None else reverse_zone)
print
+ # If domain name and realm does not match, IPA server will not be able
+ # to estabilish trust with Active Directory. Print big fat warning.
+
+ realm_not_matching_domain = (domain_name.upper() != realm_name)
+
+ if realm_not_matching_domain:
+ print("WARNING: Realm name does not match the domain name.\n"
+ "You will not be able to estabilish trusts with Active "
+ "Directory unless\nythe realm name of the IPA server matches "
+ "its domain name.\n\n")
+
if not options.unattended and not user_input("Continue to configure the system with these values?", False):
sys.exit("Installation aborted")