Why is this library forcing kerberos attempts?

Bug #1849302 reported by ProfessorKaos64
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
New
Undecided
Unassigned

Bug Description

See: https://opendev.org/jjb/python-jenkins/src/branch/master/jenkins/__init__.py#L69

try:
    import requests_kerberos
except ImportError:
    requests_kerberos = None

This results in an "ERROR", but not really and error...

2019-10-22 09:12:34,983 - ERROR - handle_other(): Mutual authentication unavailable on 403 response

As the below code jams in that option to try:

        if requests_kerberos is not None:
            self._auths.append(
                ('kerberos', requests_kerberos.HTTPKerberosAuth())
            )

Why? This should absolutely be an argument/toggle or a capture of the requests 403 message to output it as "Trying kerberos, skipping due to X" of some sort.

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.