Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22774

cli messages for unauthorized users is regressed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • tools
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      1. Create a LDAP user and assign user a role in CB Server. 
      2. Assign user - views_admin[*]
      3. 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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            ritam.sharma Ritam Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty