Description
- Create a LDAP user and assign user a role in CB Server.
- Assign user - views_admin[*]
- Now try and add a server using the user that has views_admin[*] role. In example below it is dave/password is the user which has views_admin[*] role.
With Spock, simply do a rebalance:
/opt/couchbase/bin/couchbase-cli rebalance --cluster=localhost
-u dave -p password
Message from command is -
Recieved unexpected status 403
On 4.6:
/opt/couchbase/bin/couchbase-cli rebalance --cluster=localhost -u dave -p password
ERROR: unable to rebalance cluster (403) Forbidden
{"message":"Forbidden. User needs one of the following permissions","permissions":["cluster.pools!write"]}
Note - The error message for Spock always returns - "Received unexpected status 403" - for every unauthorized users.
Attachments
For Gerrit Dashboard: MB-22774 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
73633,2 | MB-22774: Catch 403 errors and print a nice message | master | couchbase-cli | Status: MERGED | +2 | +1 |