Bug 1459220 - pycurl.HTTPAUTH_GSSNEGOTIATE moved from pycurl.Curl() to pycurl.CurlMulti() fails
Summary: pycurl.HTTPAUTH_GSSNEGOTIATE moved from pycurl.Curl() to pycurl.CurlMulti() f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-python
Classification: oVirt
Component: General
Version: 4.1.4
Hardware: Unspecified
OS: All
unspecified
medium
Target Milestone: ovirt-4.1.3
: 4.1.5
Assignee: Ondra Machacek
QA Contact: Gonza
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-06 14:45 UTC by Fabrice Bacchella
Modified: 2019-04-28 11:14 UTC (History)
5 users (show)

Fixed In Version: python-ovirt-engine-sdk4-4.1.5
Clone Of:
Environment:
Last Closed: 2017-07-06 13:18:46 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 77916 0 sdk_4.1 MERGED Set HTTPAUTH_GSSNEGOTIATE for Curl not CurlMulti 2017-06-07 12:53:39 UTC
oVirt gerrit 77942 0 sdk_4.1 MERGED Set HTTPAUTH_GSSNEGOTIATE for Curl not CurlMulti 2017-06-07 13:05:17 UTC

Description Fabrice Bacchella 2017-06-06 14:45:26 UTC
This lines: https://github.com/oVirt/ovirt-engine-sdk/commit/9db60cb3a2498ecce94eb424f92ff1685b2abece#diff-ec850c078e3abcabfb17c357722e7fe7L493

brake kerberos authentication.

setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE) is for a Curl object, not a CurlMulti one.

Try:

    new_curl = pycurl.Curl()
    new_curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE)

    multi = pycurl.CurlMulti()
    multi.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE)


It fails for the second setopt, not the first one.

Comment 1 Gonza 2017-06-21 12:24:34 UTC
Verified with:
python-ovirt-engine-sdk4-4.2.1-1.a1.20170607gitdec2258.el7.centos.x86_64


Note You need to log in before you can comment on or make changes to this bug.