From 3aae2397595ef02a9d42d3d93e3c92086e553d38 Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Fri, 28 Mar 2025 10:54:04 -0400 Subject: [PATCH 1/2] DOCSP-48719: Update non-Mongo credential placeholders --- source/security.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/security.txt b/source/security.txt index e257c5bb..1f52d35d 100644 --- a/source/security.txt +++ b/source/security.txt @@ -671,7 +671,7 @@ Windows .. code-block:: python client = pymongo.MongoClient("mongodb://:", - username="", + username="", authMechanism="GSSAPI", password="", authMechanismProperties="SERVICE_NAME:, @@ -698,7 +698,7 @@ Windows .. code-block:: python client = pymongo.AsyncMongoClient("mongodb://:", - username="", + username="", authMechanism="GSSAPI", password="", authMechanismProperties="SERVICE_NAME:, @@ -737,8 +737,8 @@ PLAIN SASL .. code-block:: python client = pymongo.MongoClient("mongodb://:", - username="", - password="", + username="", + password="", authMechanism="PLAIN", tls=True) @@ -747,7 +747,7 @@ PLAIN SASL .. code-block:: python - uri = ("mongodb://:@:/?" + uri = ("mongodb://:@:/?" "&authMechanism=PLAIN" "&tls=true") client = pymongo.MongoClient(uri) @@ -758,8 +758,8 @@ PLAIN SASL .. code-block:: python client = pymongo.AsyncMongoClient("mongodb://:", - username="", - password="", + username="", + password="", authMechanism="PLAIN", tls=True) @@ -768,7 +768,7 @@ PLAIN SASL .. code-block:: python - uri = ("mongodb://:@:/?" + uri = ("mongodb://:@:/?" "&authMechanism=PLAIN" "&tls=true") client = pymongo.AsyncMongoClient(uri) From 7c15505e5755075698a54f2e69810776a40c37be Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Fri, 28 Mar 2025 10:57:08 -0400 Subject: [PATCH 2/2] Fix --- source/security.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/security.txt b/source/security.txt index 1f52d35d..dffb8b90 100644 --- a/source/security.txt +++ b/source/security.txt @@ -673,7 +673,7 @@ Windows client = pymongo.MongoClient("mongodb://:", username="", authMechanism="GSSAPI", - password="", + password="", authMechanismProperties="SERVICE_NAME:, CANONICALIZE_HOST_NAME:true, SERVICE_REALM:") @@ -700,7 +700,7 @@ Windows client = pymongo.AsyncMongoClient("mongodb://:", username="", authMechanism="GSSAPI", - password="", + password="", authMechanismProperties="SERVICE_NAME:, CANONICALIZE_HOST_NAME:true, SERVICE_REALM:")