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:
1 parent
b2f0a018b6
commit
57429c1cfa
1 file changed
+2
-1
+2
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user