summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-30 09:35:18 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-30 10:25:38 -0400
commit676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc (patch)
tree6b1bfb05224fc148e130ced4bb82033f2956f521
parent19ba6ead8a376778b68c5d389473bb73c329b1bb (diff)
downloadfreeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.tar.gz
freeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.tar.xz
freeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.zip
Gracefully handle running on an unconfigured IPA server
-rwxr-xr-xipa-server/ipa-ldap-updater4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/ipa-ldap-updater b/ipa-server/ipa-ldap-updater
index 90119950e..f85148e35 100755
--- a/ipa-server/ipa-ldap-updater
+++ b/ipa-server/ipa-ldap-updater
@@ -120,3 +120,7 @@ except SystemExit, e:
sys.exit(e)
except KeyboardInterrupt, e:
sys.exit(1)
+except config.IPAConfigError, e:
+ print "An IPA server to update cannot be found. Has one been configured yet?"
+ print "The error was: %s" % e
+ sys.exit(1)