summaryrefslogtreecommitdiffstats
path: root/install/tools/ipactl
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-06-24 16:56:25 +0200
committerRob Crittenden <rcritten@redhat.com>2011-06-24 01:23:14 -0400
commit3656d9be3cabc16511dafaed593d272ec068e4b3 (patch)
treefda192bdf2da1e1785823a8dc52fe08adc49c9a6 /install/tools/ipactl
parentb02b77f8d777cf27a3f21155352e88c71db145c7 (diff)
downloadfreeipa-3656d9be3cabc16511dafaed593d272ec068e4b3.tar.gz
freeipa-3656d9be3cabc16511dafaed593d272ec068e4b3.tar.xz
freeipa-3656d9be3cabc16511dafaed593d272ec068e4b3.zip
Verify that the hostname is fully-qualified before accessing the service information in ipactl.
Fail gracefully if the supplied hostname isn't fully-qualified in ipa-server-install. ticket 1035
Diffstat (limited to 'install/tools/ipactl')
-rwxr-xr-xinstall/tools/ipactl3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl
index 01b88a549..a9445170f 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -295,6 +295,9 @@ def main():
api.bootstrap(context='cli', debug=options.debug)
api.finalize()
+ if '.' not in api.env.host:
+ raise IpactlError("Invalid hostname, must be fully-qualified")
+
if args[0].lower() == "start":
ipa_start()
elif args[0].lower() == "stop":