Skip to content
Merged
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
20 changes: 10 additions & 10 deletions source/security.txt
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,9 @@ Windows
.. code-block:: python

client = pymongo.MongoClient("mongodb://<hostname>:<port>",
username="<db_username>",
username="<username>",
authMechanism="GSSAPI",
password="<db_password>",
password="<password>",
authMechanismProperties="SERVICE_NAME:<authentication service name>,
CANONICALIZE_HOST_NAME:true,
SERVICE_REALM:<service realm>")
Expand All @@ -698,9 +698,9 @@ Windows
.. code-block:: python

client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
username="<db_username>",
username="<username>",
authMechanism="GSSAPI",
password="<db_password>",
password="<password>",
authMechanismProperties="SERVICE_NAME:<authentication service name>,
CANONICALIZE_HOST_NAME:true,
SERVICE_REALM:<service realm>")
Expand Down Expand Up @@ -737,8 +737,8 @@ PLAIN SASL
.. code-block:: python

client = pymongo.MongoClient("mongodb://<hostname>:<port>",
username="<db_username>",
password="<db_password>",
username="<username>",
password="<password>",
authMechanism="PLAIN",
tls=True)

Expand All @@ -747,7 +747,7 @@ PLAIN SASL

.. code-block:: python

uri = ("mongodb://<db_username>:<db_password>@<hostname>:<port>/?"
uri = ("mongodb://<username>:<password>@<hostname>:<port>/?"
"&authMechanism=PLAIN"
"&tls=true")
client = pymongo.MongoClient(uri)
Expand All @@ -758,8 +758,8 @@ PLAIN SASL
.. code-block:: python

client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
username="<db_username>",
password="<db_password>",
username="<username>",
password="<password>",
authMechanism="PLAIN",
tls=True)

Expand All @@ -768,7 +768,7 @@ PLAIN SASL

.. code-block:: python

uri = ("mongodb://<db_username>:<db_password>@<hostname>:<port>/?"
uri = ("mongodb://<username>:<password>@<hostname>:<port>/?"
"&authMechanism=PLAIN"
"&tls=true")
client = pymongo.AsyncMongoClient(uri)
Expand Down
Loading