Project

General

Profile

Bug #17846

api/v2/auth_source_ldaps/ API doesn't display Organizations and Locations assigned

Added by Nagoor Shaik over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

As a user, I would like to view the Organizations and Locations assigned for a LDAP Source through API

Current Result :

  1. curl -k -s -u admin https://satellite.lab.example.com/api/auth_source_ldaps

{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [{"host":"192.168.123.4","port":389,"account":"LAB\\satsvc","base_dn":"dc=lab,dc=example,dc=com","ldap_filter":"","attr_login":"sAMAccountName","attr_firstname":"givenName","attr_lastname":"sn","attr_mail":"mail","attr_photo":"","onthefly_register":true,"usergroup_sync":true,"tls":false,"server_type":"active_directory","groups_base":"","created_at":"2016-11-28 05:31:11 UTC","updated_at":"2016-12-26 00:58:12 UTC","id":3,"type":"AuthSourceLdap","name":"AD"}]
}

Expected Result :
  1. curl -k -s -u admin https://satellite.lab.example.com/api/auth_source_ldaps

{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [{"host":"192.168.123.4","port":389,"account":"LAB\\satsvc","base_dn":"dc=lab,dc=example,dc=com","ldap_filter":"","attr_login":"sAMAccountName","attr_firstname":"givenName","attr_lastname":"sn","attr_mail":"mail","attr_photo":"","onthefly_register":true,"usergroup_sync":true,"tls":false,"server_type":"active_directory","groups_base":"","created_at":"2016-12-26 05:57:38 UTC","updated_at":"2016-12-26 05:57:38 UTC","id":3,"type":"AuthSourceLdap","name":"AD","locations":[{"id":2,"name":"New York","title":"New York","description":null}],"organizations":[{"id":1,"name":"ExampleCorp","title":"ExampleCorp","description":""}]}]
}

Associated revisions

Revision 65c093a5 (diff)
Added by Nagoor Shaik over 3 years ago

Fixes #17846 - auth_source_ldaps API now displays taxonomies

Revision b6580534 (diff)
Added by Nagoor Shaik about 3 years ago

Fixes #17846 - auth_source_ldaps API now displays taxonomies

(cherry picked from commit 65c093a57f743567146012c3dfdae3653369218e)

History

#1 Updated by The Foreman Bot over 3 years ago

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

#2 Updated by Nagoor Shaik over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal about 3 years ago

  • Category set to API
  • Assignee set to Nagoor Shaik
  • Legacy Backlogs Release (now unused) set to 189

Also available in: Atom PDF