diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-06-26 15:48:09 +0000 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-07-01 12:20:07 +0200 |
commit | 57429c1cfa73dbcb45f705dd1723c822be4b6617 (patch) | |
tree | 9988472347750c41107996d639dcf016bf043cca /ipalib/rpc.py | |
parent | b2f0a018b6f2226106ec811cf01f9bcebb770126 (diff) | |
download | freeipa-57429c1cfa73dbcb45f705dd1723c822be4b6617.tar.gz freeipa-57429c1cfa73dbcb45f705dd1723c822be4b6617.tar.xz freeipa-57429c1cfa73dbcb45f705dd1723c822be4b6617.zip |
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>
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r-- | ipalib/rpc.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |