Use provided domain name for the rest of installation

When installing IPA client, the install script used detected domain name
of the machine instead of that given by administrator (in case one was
given)

https://fedorahosted.org/freeipa/ticket/363
This commit is contained in:
Jan Zeleny 2010-11-10 14:03:54 +01:00 committed by Simo Sorce
parent 3682a1c385
commit cbddbc2fbb

View File

@ -550,7 +550,7 @@ def main():
cli_domain = user_input("Please provide the domain name of your IPA server (ex: example.com)", allow_empty = False) cli_domain = user_input("Please provide the domain name of your IPA server (ex: example.com)", allow_empty = False)
logging.debug("will use domain: %s\n", cli_domain) logging.debug("will use domain: %s\n", cli_domain)
if options.on_master: if options.on_master:
ret = ds.search(domain=options.domain, server=options.server) ret = ds.search(domain=cli_domain, server=options.server)
else: else:
ret = ds.search(domain=cli_domain) ret = ds.search(domain=cli_domain)
if not cli_domain: if not cli_domain: