Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-31412

API endpoint "/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups" returns an error instead of entries

XMLWordPrintable

    • 2
    • False
    • Moderate
    • sat-endeavour
    • None
    • None
    • None
    • To Do

      Description of problem:

      When retrieving the external usergroups an error is shown:

      [root@wallsat615 ~]# curl -s -u admin:password https://$(hostname)/api/auth_source_ldaps/4/external_usergroups | json_reformat
      {
          "error": {
              "message": "Association not found for auth_source_ldap"
          }
      }
      

      When querying the auth source itself we can see them:

      [root@wallsat615 ~]# curl -s -u admin:password https://$(hostname)/api/auth_source_ldaps/4 | jq -r '.external_usergroups'
      [
        {
          "id": 1,
          "name": "grp_satellite"
        }
      ]
      

      How reproducible:

      100%

      Is this issue a regression from an earlier version:

      Not sureĀ 

      Steps to Reproduce:

      1. Deploy satellite
      2. Setup external ldap auth, + usergroup feature
      3. Proceed with the API query

      Actual behavior:
      Error message for a specific endpoint

      Expected behavior:
      See the list of external user groups

              Unassigned Unassigned
              rhn-support-wpinheir Waldirio Pinheiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: