File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
source/fundamentals/authentication Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,21 @@ parameters of the
21
21
:manual:`connection string </reference/connection-string/>`:
22
22
23
23
- Set the ``authMechanism`` parameter to ``GSSAPI``
24
- - Set the ``gssapiServiceName`` if using a value other than ``mongodb``
24
+ - Set the ``SERVICE_NAME`` value in the ``authMechanismProperties``
25
+ parameter if using a value other than ``mongodb``
25
26
- Specify a ``SERVICE_REALM`` value in the ``authMechanismProperties``
26
27
parameter if a custom service realm is required.
27
28
29
+ .. important::
30
+
31
+ The ``gssapiServiceName`` parameter is deprecated and may be removed
32
+ in future versions of the driver. Use
33
+ ``authMechanismProperties=SERVICE_NAME:<your service name>`` in the
34
+ connection URI instead.
35
+ See the
36
+ :manual:`authMechanismProperties </reference/connection-string/#urioption.authMechanismProperties>`
37
+ parameter documentation for more information.
38
+
28
39
The following code sample authenticates to Kerberos for UNIX using ``GSSAPI``.
29
40
30
41
.. important::
You can’t perform that action at this time.
0 commit comments