From c3fedca013cebc29ac9e162c7a59db1a96c2a30a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 17 Mar 2008 13:16:56 -0400 Subject: Don't define bogus realm/server in configuration file by default Add default exception handler to avoid backtraces in cmdline tools Enhance error message when the IPA server or realm can't be found 437565 --- ipa-python/config.py | 4 ++-- ipa-python/ipa.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ipa-python') diff --git a/ipa-python/config.py b/ipa-python/config.py index 2f5c54f68..b6d959bcb 100644 --- a/ipa-python/config.py +++ b/ipa-python/config.py @@ -146,9 +146,9 @@ def init_config(args=None): __parse_config() if not config.default_realm: - raise IPAConfigError("realm not found, nor specified in config file or on command line") + raise IPAConfigError("IPA realm not found in DNS, in the config file (/etc/ipa/ipa.conf) or on the command line.") if not config.default_server: - raise IPAConfigError("server not found, nor specified in config file or on command line") + raise IPAConfigError("IPA server not found in DNS, in the config file (/etc/ipa/ipa.conf) or on the command line.") if out_args: return out_args diff --git a/ipa-python/ipa.conf b/ipa-python/ipa.conf index 5243cf22f..516f764d5 100644 --- a/ipa-python/ipa.conf +++ b/ipa-python/ipa.conf @@ -1,3 +1,3 @@ [defaults] -realm = foo.bar -server = realm.foo.bar +# realm = EXAMPLE.COM +# server = ipa.example.com -- cgit