Actions
Bug #39590
openAPI endpoint "/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups" returns an error instead of entries
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:¶
- Deploy satellite
- Setup external ldap auth, + usergroup feature
- Proceed with the API query
Actual behavior:¶
Error message for a specific endpoint
Expected behavior:¶
See the list of external user groups
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