summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-21 10:40:09 -0500
committerRob Crittenden <rcritten@redhat.com>2011-01-21 13:47:55 -0500
commit35f2f1d72078d69ca82b68f4d52bc61f2d297dfc (patch)
treecee3c2361c32ae4a50b2a2914fbbcd7ddb8213d6 /ipa-client/ipa-install/ipa-client-install
parent6d01bf037d7f6a4ec66d3b8b42229efa62dda6c1 (diff)
downloadfreeipa-35f2f1d72078d69ca82b68f4d52bc61f2d297dfc.zip
freeipa-35f2f1d72078d69ca82b68f4d52bc61f2d297dfc.tar.gz
freeipa-35f2f1d72078d69ca82b68f4d52bc61f2d297dfc.tar.xz
Improve output when options are not found in non-interactive client install
We should still give some feedback when things go wrong when in non-interactive mode. ticket 828
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index c95b828..b233097 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -542,6 +542,7 @@ def main():
if options.domain:
cli_domain = options.domain
elif options.unattended:
+ print >>sys.stderr, "Unable to discover domain, not provided on command line"
return ret
else:
print "DNS discovery failed to determine your DNS domain"
@@ -561,6 +562,7 @@ def main():
if options.server:
cli_server = options.server
elif options.unattended:
+ print >>sys.stderr, "Unable to find IPA Server to join"
return ret
else:
print "DNS discovery failed to find the IPA Server"
@@ -654,7 +656,7 @@ def main():
sys.stdout.flush()
else:
if sys.stdin.isatty():
- sys.exit("Password must be provided in non-interactive mode")
+ sys.exit("Password must be provided in non-interactive mode.\nThis can be done via echo password | ipa-client-install ... or\nwith the -w option.")
else:
stdin = sys.stdin.readline()