@@ -671,9 +671,9 @@ Windows
671
671
.. code-block:: python
672
672
673
673
client = pymongo.MongoClient("mongodb://<hostname>:<port>",
674
- username="<db_username >",
674
+ username="<username >",
675
675
authMechanism="GSSAPI",
676
- password="<db_password >",
676
+ password="<password >",
677
677
authMechanismProperties="SERVICE_NAME:<authentication service name>,
678
678
CANONICALIZE_HOST_NAME:true,
679
679
SERVICE_REALM:<service realm>")
@@ -698,9 +698,9 @@ Windows
698
698
.. code-block:: python
699
699
700
700
client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
701
- username="<db_username >",
701
+ username="<username >",
702
702
authMechanism="GSSAPI",
703
- password="<db_password >",
703
+ password="<password >",
704
704
authMechanismProperties="SERVICE_NAME:<authentication service name>,
705
705
CANONICALIZE_HOST_NAME:true,
706
706
SERVICE_REALM:<service realm>")
@@ -737,8 +737,8 @@ PLAIN SASL
737
737
.. code-block:: python
738
738
739
739
client = pymongo.MongoClient("mongodb://<hostname>:<port>",
740
- username="<db_username >",
741
- password="<db_password >",
740
+ username="<username >",
741
+ password="<password >",
742
742
authMechanism="PLAIN",
743
743
tls=True)
744
744
@@ -747,7 +747,7 @@ PLAIN SASL
747
747
748
748
.. code-block:: python
749
749
750
- uri = ("mongodb://<db_username >:<db_password >@<hostname>:<port>/?"
750
+ uri = ("mongodb://<username >:<password >@<hostname>:<port>/?"
751
751
"&authMechanism=PLAIN"
752
752
"&tls=true")
753
753
client = pymongo.MongoClient(uri)
@@ -758,8 +758,8 @@ PLAIN SASL
758
758
.. code-block:: python
759
759
760
760
client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
761
- username="<db_username >",
762
- password="<db_password >",
761
+ username="<username >",
762
+ password="<password >",
763
763
authMechanism="PLAIN",
764
764
tls=True)
765
765
@@ -768,7 +768,7 @@ PLAIN SASL
768
768
769
769
.. code-block:: python
770
770
771
- uri = ("mongodb://<db_username >:<db_password >@<hostname>:<port>/?"
771
+ uri = ("mongodb://<username >:<password >@<hostname>:<port>/?"
772
772
"&authMechanism=PLAIN"
773
773
"&tls=true")
774
774
client = pymongo.AsyncMongoClient(uri)
0 commit comments