summaryrefslogtreecommitdiffstats
path: root/ipapython/ipautil.py
diff options
context:
space:
mode:
authorMichael Simacek <msimacek@redhat.com>2015-07-16 18:22:00 +0200
committerJan Cholasta <jcholast@redhat.com>2015-08-05 08:08:00 +0200
commitf0b4c4487ed77a3037cbbc46206d598c58f06bb1 (patch)
tree2c27ce8d917f3b23ff4e814a845c4bc9b6aa1e3c /ipapython/ipautil.py
parent3257ac6b876e9e62cae58060c96c525ff0df1ae3 (diff)
downloadfreeipa-f0b4c4487ed77a3037cbbc46206d598c58f06bb1.tar.gz
freeipa-f0b4c4487ed77a3037cbbc46206d598c58f06bb1.tar.xz
freeipa-f0b4c4487ed77a3037cbbc46206d598c58f06bb1.zip
Port from python-kerberos to python-gssapi
kerberos library doesn't support Python 3 and probably never will. python-gssapi library is Python 3 compatible. https://fedorahosted.org/freeipa/ticket/5147 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Robbie Harwood <rharwood@redhat.com> Reviewed-By: Simo Sorce <ssorce@redhat.com>
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r--ipapython/ipautil.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 88e89706b..05a7eebf0 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -783,23 +783,6 @@ def user_input(prompt, default = None, allow_empty = True):
return ret
-def get_gsserror(e):
- """
- A GSSError exception looks differently in python 2.4 than it does
- in python 2.5. Deal with it.
- """
-
- try:
- major = e[0]
- minor = e[1]
- except:
- major = e[0][0]
- minor = e[0][1]
-
- return (major, minor)
-
-
-
def host_port_open(host, port, socket_type=socket.SOCK_STREAM, socket_timeout=None):
for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket_type):
af, socktype, proto, canonname, sa = res