Skip to content

Commit d456b04

Browse files
Anthony Sansoneravindk89
authored andcommitted
(DOCS-10680): Update setspn option.
1 parent d51953a commit d456b04

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

source/tutorial/control-access-to-mongodb-windows-with-kerberos-authentication.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,17 @@ account running the ``mongod.exe`` and the ``mongos.exe`` service:
7676

7777
.. code-block:: sh
7878

79-
setspn.exe -A <service>/<fully qualified domain name> <service account name>
79+
setspn.exe -S <service>/<fully qualified domain name> <service account name>
8080

81-
For example, if :binary:`~bin.mongod.exe` runs as a service named
82-
``mongodb`` on ``testserver.mongodb.com`` with the service account name
83-
``mongodtest``, assign the SPN as follows:
81+
.. example::
8482

85-
.. code-block:: sh
83+
If :binary:`~bin.mongod.exe` runs as a service named
84+
``mongodb`` on ``testserver.mongodb.com`` with the service account
85+
name ``mongodtest``, assign the SPN as follows:
86+
87+
.. code-block:: sh
8688

87-
setspn.exe -A mongodb/testserver.mongodb.com mongodtest
89+
setspn.exe -S mongodb/testserver.mongodb.com mongodtest
8890

8991
.. _enable-mixed-kerberos-and-cr-windows:
9092

0 commit comments

Comments
 (0)