summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-lockuser
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-admintools/ipa-lockuser')
-rw-r--r--ipa-admintools/ipa-lockuser4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-lockuser b/ipa-admintools/ipa-lockuser
index c11f1ea8b..0fea7bed1 100644
--- a/ipa-admintools/ipa-lockuser
+++ b/ipa-admintools/ipa-lockuser
@@ -25,6 +25,7 @@ try:
import ipa.config
import ipa.ipautil as ipautil
import errno
+ import socket
import xmlrpclib
import kerberos
@@ -106,6 +107,9 @@ except xmlrpclib.ProtocolError, e:
except ipa.ipaerror.IPAError, e:
print "%s" % (e.message)
sys.exit(1)
+except socket.error, e:
+ print e[1]
+ print "Re-run with -v flag for more details."
except Exception, e:
print "%s" % str(e)
sys.exit(1)