summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-03-17 13:16:56 -0400
committerRob Crittenden <rcritten@redhat.com>2008-03-17 13:16:56 -0400
commitc3fedca013cebc29ac9e162c7a59db1a96c2a30a (patch)
tree6a064a9d56bc34492c612e3ba662f1adea574965 /ipa-admintools
parenta39f38f65b6dd16643ee68dc46ef96bf8cda2f73 (diff)
downloadfreeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.tar.gz
freeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.tar.xz
freeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.zip
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
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-adddelegation3
-rw-r--r--ipa-admintools/ipa-addgroup3
-rw-r--r--ipa-admintools/ipa-addservice3
-rw-r--r--ipa-admintools/ipa-adduser3
-rw-r--r--ipa-admintools/ipa-deldelegation3
-rw-r--r--ipa-admintools/ipa-delgroup3
-rw-r--r--ipa-admintools/ipa-delservice3
-rw-r--r--ipa-admintools/ipa-deluser3
-rw-r--r--ipa-admintools/ipa-findgroup3
-rw-r--r--ipa-admintools/ipa-findservice3
-rw-r--r--ipa-admintools/ipa-finduser3
-rw-r--r--ipa-admintools/ipa-listdelegation3
-rw-r--r--ipa-admintools/ipa-lockuser3
-rw-r--r--ipa-admintools/ipa-moddelegation3
-rw-r--r--ipa-admintools/ipa-modgroup3
-rw-r--r--ipa-admintools/ipa-moduser3
-rw-r--r--ipa-admintools/ipa-passwd3
-rw-r--r--ipa-admintools/ipa-pwpolicy3
18 files changed, 54 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-adddelegation b/ipa-admintools/ipa-adddelegation
index e2254fd2d..bd55d0535 100644
--- a/ipa-admintools/ipa-adddelegation
+++ b/ipa-admintools/ipa-adddelegation
@@ -188,3 +188,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-addgroup b/ipa-admintools/ipa-addgroup
index 1668dbabd..58190c02d 100644
--- a/ipa-admintools/ipa-addgroup
+++ b/ipa-admintools/ipa-addgroup
@@ -124,3 +124,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-addservice b/ipa-admintools/ipa-addservice
index cecd48100..1702069d9 100644
--- a/ipa-admintools/ipa-addservice
+++ b/ipa-admintools/ipa-addservice
@@ -91,3 +91,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-adduser b/ipa-admintools/ipa-adduser
index 6decde09c..763cfe71e 100644
--- a/ipa-admintools/ipa-adduser
+++ b/ipa-admintools/ipa-adduser
@@ -258,3 +258,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-deldelegation b/ipa-admintools/ipa-deldelegation
index bc05b2837..fc33a9bad 100644
--- a/ipa-admintools/ipa-deldelegation
+++ b/ipa-admintools/ipa-deldelegation
@@ -130,3 +130,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-delgroup b/ipa-admintools/ipa-delgroup
index 516820220..34f5f2712 100644
--- a/ipa-admintools/ipa-delgroup
+++ b/ipa-admintools/ipa-delgroup
@@ -92,3 +92,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-delservice b/ipa-admintools/ipa-delservice
index 91775dd91..610d79b6c 100644
--- a/ipa-admintools/ipa-delservice
+++ b/ipa-admintools/ipa-delservice
@@ -94,3 +94,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-deluser b/ipa-admintools/ipa-deluser
index a05e528e4..36f113db0 100644
--- a/ipa-admintools/ipa-deluser
+++ b/ipa-admintools/ipa-deluser
@@ -77,3 +77,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-findgroup b/ipa-admintools/ipa-findgroup
index e6f27e9a6..54a8ce525 100644
--- a/ipa-admintools/ipa-findgroup
+++ b/ipa-admintools/ipa-findgroup
@@ -144,3 +144,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-findservice b/ipa-admintools/ipa-findservice
index 499c7f890..fc4aa8b11 100644
--- a/ipa-admintools/ipa-findservice
+++ b/ipa-admintools/ipa-findservice
@@ -92,3 +92,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-finduser b/ipa-admintools/ipa-finduser
index a08c988f5..e7754cc79 100644
--- a/ipa-admintools/ipa-finduser
+++ b/ipa-admintools/ipa-finduser
@@ -154,3 +154,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-listdelegation b/ipa-admintools/ipa-listdelegation
index 217b16dde..4dabc81ed 100644
--- a/ipa-admintools/ipa-listdelegation
+++ b/ipa-admintools/ipa-listdelegation
@@ -109,3 +109,6 @@ except xmlrpclib.ProtocolError, e:
except ipaerror.IPAError, e:
print("Delegation list failed: " + str(e))
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-lockuser b/ipa-admintools/ipa-lockuser
index 54cebd902..65342e0b9 100644
--- a/ipa-admintools/ipa-lockuser
+++ b/ipa-admintools/ipa-lockuser
@@ -96,3 +96,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-moddelegation b/ipa-admintools/ipa-moddelegation
index 61aab5e12..1c840e16a 100644
--- a/ipa-admintools/ipa-moddelegation
+++ b/ipa-admintools/ipa-moddelegation
@@ -226,3 +226,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-modgroup b/ipa-admintools/ipa-modgroup
index b40df4be9..a91d9a014 100644
--- a/ipa-admintools/ipa-modgroup
+++ b/ipa-admintools/ipa-modgroup
@@ -217,3 +217,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-moduser b/ipa-admintools/ipa-moduser
index af4b99f0e..906a40f05 100644
--- a/ipa-admintools/ipa-moduser
+++ b/ipa-admintools/ipa-moduser
@@ -283,3 +283,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-passwd b/ipa-admintools/ipa-passwd
index 2494923f0..22cffca89 100644
--- a/ipa-admintools/ipa-passwd
+++ b/ipa-admintools/ipa-passwd
@@ -132,3 +132,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)
diff --git a/ipa-admintools/ipa-pwpolicy b/ipa-admintools/ipa-pwpolicy
index 534cba978..31dc242f9 100644
--- a/ipa-admintools/ipa-pwpolicy
+++ b/ipa-admintools/ipa-pwpolicy
@@ -137,3 +137,6 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)