summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-11 07:29:51 +0100
committerRob Crittenden <rcritten@redhat.com>2010-11-19 13:53:09 -0500
commitd9dd838014b49932a569dc2e8f9d8942637d2590 (patch)
tree6d2b06dd57fc1d0b2a7e04baf8576aa0f1b3a783 /ipa-client/ipa-install
parent53d15537553e20a732d041ebddfd4ba69d5bb8dd (diff)
downloadfreeipa-d9dd838014b49932a569dc2e8f9d8942637d2590.tar.gz
freeipa-d9dd838014b49932a569dc2e8f9d8942637d2590.tar.xz
freeipa-d9dd838014b49932a569dc2e8f9d8942637d2590.zip
Log interactive options in install scripts
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index fa9d27566..498492063 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -504,6 +504,7 @@ def main():
safe_options, options = parse_options()
logging_setup(options)
logging.debug('%s was invoked with options: %s' % (sys.argv[0], safe_options))
+ logging.debug("missing options might be asked for interactively later\n")
dnsok = False
env={"PATH":"/bin:/sbin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/bin:/usr/sbin"}
@@ -547,6 +548,7 @@ def main():
else:
print "DNS discovery failed to determine your DNS domain"
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)
if options.on_master:
ret = ds.search(domain=options.domain, server=options.server)
else:
@@ -554,6 +556,7 @@ def main():
if not cli_domain:
if ds.getDomainName():
cli_domain = ds.getDomainName()
+ logging.debug("will use domain: %s\n", cli_domain)
if ret == -2 or not ds.getServerName():
logging.debug("IPA Server not found")
@@ -564,12 +567,14 @@ def main():
else:
print "DNS discovery failed to find the IPA Server"
cli_server = user_input("Please provide your IPA server name (ex: ipa.example.com)", allow_empty = False)
+ logging.debug("will use server: %s\n", cli_server)
ret = ds.search(domain=cli_domain, server=cli_server)
else:
dnsok = True
if not cli_server:
if ds.getServerName():
cli_server = ds.getServerName()
+ logging.debug("will use server: %s\n", cli_server)
if ret != 0:
print "Failed to verify that "+cli_server+" is an IPA Server."
@@ -595,7 +600,9 @@ def main():
return -3
cli_realm = ds.getRealmName()
+ logging.debug("will use cli_realm: %s\n", cli_realm)
cli_basedn = ds.getBaseDN()
+ logging.debug("will use cli_basedn: %s\n", cli_basedn)
subject_base = "O=%s" % ds.getRealmName()
print "Realm: "+cli_realm
@@ -610,6 +617,7 @@ def main():
if not options.unattended:
if options.principal is None and options.password is None and options.prompt_password is False:
options.principal = user_input("Enrollment principal", allow_empty=False)
+ logging.debug("will use principal: %s\n", options.principal)
# Get the CA certificate
try: