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

cbdcoloader allows user with bucket_role to create bucket

    XMLWordPrintable

Details

    Description

      1. Configure a CB Server with an LDAP server and create a user in ldap
      2. Assign the user bucket_admin[*] role from Settings->External User/Role
      3. Login a user1 via UI and check if the user can create bucket. User will not be able to create bucket from UI
      4. Now run cbdocloader with the same user:

      [root@node1-cb450-testing-centos6 bin]# ./cbdocloader -n localhost:8091 -u dave -p password -b mybucket ../samples/gamesim-sample.zip 
      [2016-03-08 10:12:37,179] - [rest_client] [140072336189184] - INFO - existing buckets : [u'beer-sample']
      [2016-03-08 10:12:38,990] - [rest_client] [140072336189184] - INFO - http://localhost:8091//pools/default/buckets with param: proxyPort=11211&bucketType=membase&authType=sasl&name=mybucket&replicaNumber=1&saslPassword=&ramQuotaMB=100
      [2016-03-08 10:12:40,873] - [rest_client] [140072336189184] - INFO - existing buckets : [u'beer-sample', u'mybucket']
      [2016-03-08 10:12:40,874] - [rest_client] [140072336189184] - INFO - found bucket mybucket
      ..bucket creation is successful
      .
      bucket: gamesim-sample.zip, msgs transferred...
             :                total |       last |    per sec
       byte  :                94693 |      94693 |   253792.5
      done
      
      

      User is able to create bucket as well as create documents

      Attachments

        For Gerrit Dashboard: MB-18577
        # Subject Branch Project Status CR V

        Activity

          People

            artem Artem Stemkovski
            ritam.sharma Ritam Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty