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 <tbabej@redhat.com>
This commit is contained in:
Rob Crittenden
2015-06-26 15:48:09 +00:00
committed by Tomas Babej
parent b2f0a018b6
commit 57429c1cfa

View File

@@ -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)