From 57429c1cfa73dbcb45f705dd1723c822be4b6617 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 26 Jun 2015 15:48:09 +0000 Subject: Don't rely on positional arguments for python-kerberos calls Upstream PyKerberos uses a different argument ordering than from the patch that Fedora/RHEL was carrying for authGSSClientInit(). Using named arguments provides forwards and backwards compatibility. https://fedorahosted.org/freeipa/ticket/5085 Reviewed-By: Tomas Babej --- ipalib/rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipalib/rpc.py') diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 6a1c983c0..466b49a6d 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -548,7 +548,8 @@ class KerbTransport(SSLTransport): service = "HTTP@" + host.split(':')[0] try: - (rc, vc) = kerberos.authGSSClientInit(service, self.flags) + (rc, vc) = kerberos.authGSSClientInit(service=service, + gssflags=self.flags) except kerberos.GSSError, e: self._handle_exception(e) -- cgit