Skip to content
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