Skip to content

DOCS-7330: adds --host and --gssapiHostName flags to connect examples #2621

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
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ action:
- pre: You can connect and authenticate from the command line.
language: sh
code: |
mongo.exe --authenticationMechanism=GSSAPI --authenticationDatabase='$external' \
--username [email protected]
mongo.exe --host hostname.example.net --authenticationMechanism=GSSAPI --authenticationDatabase='$external' --username [email protected]
post: |
If you are connecting to a system whose hostname does not
match the Kerberos name, use :option:`--gssapiHostName <mongo --gssapiHostName>`
to specify the Kerberos FQDN that it responds to.
- pre: |
Or, alternatively, you can first connect :program:`mongo.exe` to the
Alternatively, you can first connect :program:`mongo.exe` to the
:program:`mongod.exe`, and then from the :program:`mongo.exe` shell, use
the :method:`db.auth()` method to authenticate in the
``$external`` database.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ action:
- pre: You can connect and authenticate from the command line.
language: sh
code: |
mongo --authenticationMechanism=GSSAPI --authenticationDatabase='$external' \
--username application/[email protected]
mongo --host hostname.example.net --authenticationMechanism=GSSAPI --authenticationDatabase='$external' --username application/[email protected]
post: |
If you are connecting to a system whose hostname does not
match the Kerberos name, use :option:`--gssapiHostName <mongo --gssapiHostName>`
to specify the Kerberos FQDN that it responds to.
- pre: |
Or, alternatively, you can first connect :program:`mongo` to the
Alternatively, you can first connect :program:`mongo` to the
:program:`mongod`, and then from the :program:`mongo` shell, use
the :method:`db.auth()` method to authenticate in the
``$external`` database.
Expand Down