Skip to content

Commit 9f9a321

Browse files
(DOCSP-25712): Re-add Kerberos auth behavior (#433)
* (DOCSP-25712): Re-add Kerberos auth behavior * formatting * remove unneeded admonition * line formatting * wording
1 parent c62161b commit 9f9a321

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

source/connect/authentication-connection.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,32 @@ Procedure
153153
* - (Optional) Provide password directly
154154
- Used to verify your identity.
155155

156+
Authenticate as a Different Kerberos User on Windows
157+
````````````````````````````````````````````````````
158+
159+
When you authenticate with Kerberos on Windows, the
160+
:guilabel:`Principal` you specify must match the principal of the
161+
security context that |compass-short| is running. Normally, this
162+
is the logged-in user who is running |compass-short|.
163+
164+
To authenticate as a different Kerberos user, run |compass| as the
165+
chosen user and specify the :guilabel:`Principal` for that user.
166+
To run |compass| as a different user, either:
167+
168+
- Hold :guilabel:`Shift` and right-click the |compass| program
169+
icon to select :guilabel:`Run as a different user`.
170+
171+
- Use the ``runas`` command-line tool. For example, the following
172+
command runs |compass| as a user named ``admin``:
173+
174+
.. code-block:: sh
175+
176+
runas /profile /user:mymachine\admin <path to MongoDB Compass>
177+
178+
After you start |compass| as the chosen user, to authenticate
179+
against your Kerberos-enabled MongoDB deployment, specify the
180+
:guilabel:`Principal` for the corresponding user.
181+
156182
.. _ldap-authentication:
157183

158184
LDAP

0 commit comments

Comments
 (0)