Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20448

Access Token authentication will not work on RHEL6 machines using YUM client

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Access Tokens, YUM
    • Labels:
      None

      Description

      When creating Access Token for example for existing/none existing user with deployment operations on RHEL7 everything works properly.

      However, when trying to use the same Access Token on RHEL6 machine using YUM client 3.2.29, it will result with status 401, and "Bad credentials":
      {
      "errors" : [

      { "status" : 401, "message" : "Bad credentials" }

      ]

      [root@sai-centos-6 6]# yum install libfa1
      Loaded plugins: fastestmirror, security
      Setting up Install Process
      Loading mirror speeds from cached hostfile
      https://<username>:<access_token>@jfrog.io/artifactory/rpm-local/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
      Trying other mirror.
      Error: Cannot retrieve repository metadata (repomd.xml) for repository: Artifactory. Please verify its path and try again

      Steps to reproduce are simple:
      1. Create a user(can be admin or with just read permissions on rpm-local). 
      2. Create an access token using curl on RHEL6 machine. Apply that token in your yum config.
      3. Resolve an artifact existing in the repository, using the yum client(3.2.29).
      4. On RHEL6 machine, you will get error 401.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shaibz Shai Ben-Zvi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: