[DOCS-6278] Comment on: "manual/tutorial/enable-authentication-in-sharded-cluster.txt" Created: 26/Sep/15  Updated: 03/Nov/17  Resolved: 26/Sep/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongo 3.0.4 WiredTiger running on wheezy chroot on x64 machine

Location: http://docs.mongodb.org/manual/tutorial/enable-authentication-in-sharded-cluster/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36
Referrer: https://www.google.it/
Screen Resolution: 1366 x 768
repo: docs
source: tutorial/enable-authentication-in-sharded-cluster


Participants:
Days since reply: 8 years, 20 weeks, 4 days ago

 Description   

Hi
Sorry but the instructions are not clear enough, to be more precise the step 3.
I have my configsvr, 5 shards and mongos all started wtih the same "security.keyFile: /etc/mongodb/key_file", I've managed to connect to the mongos port and created the admin user, tried different roles and combinations: root, userAdminAnyDatabase, readWritieAnyDatabase. afterwards I'm able to use this user to connect to the mongos ... but not on any of the others members/components of the cluster.

so which is the complete and correct procedure ?
should I create the "admin user" first on the mongod instances and then on the mongos ? it must be the same ? (same user + same pass) ?

Thank you for your help and time



 Comments   
Comment by Kay Kim (Inactive) [ 26/Sep/15 ]

Emailed user regarding sharded clusters and auth. Generally, as you issue operations through the mongos, the user you create on mongos should suffice for most operations. Sometimes, you might need to do maintenance on an individual shards, and that requires a separate creation of users on the mongod instances.

Also, in case he was not aware, included instructions to create a user, after creating the user admin, with a clusterAdmin role to do sharding operations, such as enable sharding, etc.

Generated at Thu Feb 08 07:51:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.