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 |
61265,3 | MB-18577 disallow bucket_admin[*] to create buckets | master | ns_server | Status: MERGED | +2 | +1 |