[DOCS-11027] The Example Request for Mapping LDAP Groups to Ops Manager Roles should include the OM Group Name Created: 16/Nov/17  Updated: 27/Oct/23  Resolved: 10/Jan/18

Status: Closed
Project: Documentation
Component/s: API, Ops Manager
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Ross Cantillon (Inactive) Assignee: Robert Justice (Inactive)
Resolution: Gone away Votes: 0
Labels: triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 6 years, 5 weeks ago

 Description   

The Example Request should include the name parameter (the Ops Manager group name).

Located under the tutorial on Mapping LDAP Groups to Ops Manager Roles.

While the name parameter is detailed under the section on Request Body Parameters, it should be included in the Example Request as by not including it, the request will fail.



 Comments   
Comment by James Broadhead (Inactive) [ 10/Jan/18 ]

michael.benoit

Comment by Michael Benoit [ 10/Jan/18 ]

This was a very easy backport, so I went ahead with it.

james.broadhead, I added fixVersion on-prem-3.4.12 to CLOUDP-25617. Not sure if that was the right one, or if it should have been on-prem-3.4.13.

Comment by Lawrence Tan (Inactive) [ 09/Jan/18 ]

I think michael.benoit or james.broadhead can better answer that.

Comment by Ross Cantillon (Inactive) [ 18/Dec/17 ]

Hi rob.justice,

I reproduced the error on a vagrant machine.

My environment:
OM 3.4.5.424
CentOS 7

Without Group Name:

curl --user "admin@localhost.com:126a9ff4-26a6-40c7-a30d-01cbfb211c8" --digest  --header "Accept: application/json"  --header "Content-Type: application/json"  --include  --request PATCH "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882?pretty=true"  --data '
 {
   "ldapGroupMappings" : [ {
     "roleName": "GROUP_OWNER",
     "ldapGroups": [ "group-owner" ]
    } ],
 }'
HTTP/1.1 401 Unauthorized
Date: Thu, 16 Nov 2017 14:00:57 GMT
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="dQxapwvhVhN9zcQGoafAdXZE4YxMhl8+", algorithm=MD5, qop="auth", stale=false
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 106
 
HTTP/1.1 500 Internal Server Error
Date: Thu, 16 Nov 2017 14:00:57 GMT
Vary: Accept-Encoding
Content-Length: 149
Content-Type: application/json
 
{
  "detail" : "Unexpected error.",
  "error" : 500,
  "errorCode" : "UNEXPECTED_ERROR",
  "parameters" : [ ],
  "reason" : "Internal Server Error"

With Group Name:

curl --user "admin@localhost.com:126a9ff4-26a6-40c7-a30d-01cbfb211c8" --digest  --header "Accept: application/json"  --header "Content-Type: application/json"  --include  --request PATCH "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882?pretty=true"  --data '
 {
   "ldapGroupMappings" : [ {
     "roleName": "GROUP_OWNER",
     "ldapGroups": [ "group-owner" ]
    } ],
"name": "Ross" }'
HTTP/1.1 401 Unauthorized
Date: Thu, 16 Nov 2017 14:03:31 GMT
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="bboKCwbCp0V/1IkN5L4Gc7pNhC4sRb2x", algorithm=MD5, qop="auth", stale=false
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 106
 
HTTP/1.1 200 OK
Date: Thu, 16 Nov 2017 14:03:31 GMT
Vary: Accept-Encoding
Content-Length: 1719
Content-Type: application/json
 
{
  "activeAgentCount" : 0,
  "agentApiKey" : "8de336be0009e302ae2773fec9f7df79",
  "hostCounts" : {
    "arbiter" : 0,
    "config" : 0,
    "master" : 0,
    "mongos" : 0,
    "primary" : 0,
    "secondary" : 0,
    "slave" : 0
  },
  "id" : "5a0d966928dc32326b3e8882",
  "ldapGroupMappings" : [ {
    "ldapGroups" : [ "group-owner" ],
    "roleName" : "GROUP_OWNER"
  } ],
  "links" : [ {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882",
    "rel" : "self"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/hosts",
    "rel" : "http://mms.mongodb.com/hosts"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/users",
    "rel" : "http://mms.mongodb.com/users"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/clusters",
    "rel" : "http://mms.mongodb.com/clusters"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/alertConfigs",
    "rel" : "http://mms.mongodb.com/alertConfigs"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/alerts",
    "rel" : "http://mms.mongodb.com/alerts"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/backupConfigs",
    "rel" : "http://mms.mongodb.com/backupConfigs"
  }, {
    "href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/agents",
    "rel" : "http://mms.mongodb.com/agents"
  } ],
  "name" : "Ross",
  "publicApiEnabled" : true,
  "replicaSetCount" : 0,
  "shardCount" : 0,
  "tags" : [ ]

Generated at Thu Feb 08 08:01:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.