Skip to content

DOCS-8820: must connect to primary to add users #2728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions source/includes/steps-enable-authentication-in-replica-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,25 @@ pre: |
stepnum: 5
level: 4
ref: connect-via-localhost
source:
file: steps-deploy-replica-set-with-auth.yaml
ref: deploy-repset-connect-to-member
pre: |
Connect a :program:`mongo` shell to one of the config server
:program:`mongod` instances over the :ref:`localhost
interface<localhost-exception>`. You must run the :program:`mongo`
shell on the same physical machine as the :program:`mongod` instance.

Use :method:`rs.status()` to identify the :term:`primary` replica set
member. If you are connected to the primary, continue to the next step. If
not, identify the primary :program:`mongod` and connect to it using a
:program:`mongo` shell over the :ref:`localhost
interface<localhost-exception>`.

You must connect using the :ref:`localhost interface <localhost-exception>`
because no users have been created for the deployment. After creating
the first user, you must authenticate using that user to proceed regardless
of how you are connected to the :program:`mongod`.

.. important:: You must connect to the :term:`primary` before proceeding.

---
stepnum: 6
title: Create the user administrator.
Expand Down