Project

General

Profile

Actions

Bug #39590

open

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

Added by Michal Gritzbach 3 days ago. Updated 3 days ago.

Status:
Ready For Testing
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

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

Actions #1

Updated by The Foreman Bot 3 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/11131 added
Actions

Also available in: Atom PDF