Skip to content

Commit 540ac5b

Browse files
committed
Address NR feedback
1 parent 5fcd184 commit 540ac5b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/fundamentals/enterprise-authentication.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ user to authenticate to a Kerberos service using the user's principal name.
5151
The following examples specify the authentication mechanism using the following
5252
placeholders:
5353

54-
- ``<db_username>``: Your :wikipedia:`URL-encoded <Percent-encoding>` principal name; for example "username%40REALM.ME"
55-
- ``<db_password>``: Your Kerberos user's password
54+
- ``<username>``: Your :wikipedia:`URL-encoded <Percent-encoding>` principal name; for example "username%40REALM.ME"
55+
- ``<password>``: Your Kerberos user's password
5656
- ``<hostname>``: The network address of your MongoDB server, accessible by your client
5757

5858
Select the :guilabel:`Connection String` or :guilabel:`MongoCredential` tab to
@@ -66,15 +66,15 @@ mechanism:
6666

6767
.. code-block:: csharp
6868

69-
var mongoClient = new MongoClient("mongodb://<db_username>:<db_password>@<hostname>/?authMechanism=GSSAPI");
69+
var mongoClient = new MongoClient("mongodb://<username>:<password>@<hostname>/?authMechanism=GSSAPI");
7070

7171
.. tab:: MongoCredential
7272
:tabid: mongo-credential
7373

7474
.. code-block:: csharp
7575
:emphasize-lines: 1
7676

77-
var credential = MongoCredential.CreateGssapiCredential("<db_username>", "<db_password>");
77+
var credential = MongoCredential.CreateGssapiCredential("<username>", "<password>");
7878
var settings = MongoClientSettings.FromConnectionString("<connection string>");
7979
settings.Credential = credential;
8080
var mongoClient = new MongoClient(settings);
@@ -219,8 +219,8 @@ using your directory-server username and password.
219219
The following examples specify the authentication mechanism using the following
220220
placeholders:
221221

222-
- ``<db_username>``: Your LDAP username
223-
- ``<db_password>``: Your LDAP password
222+
- ``<username>``: Your LDAP username
223+
- ``<password>``: Your LDAP password
224224
- ``<hostname>``: The network address of your MongoDB server, accessible by your
225225
client
226226
- ``<authenticationDb>``: The MongoDB database that contains your user's
@@ -237,15 +237,15 @@ mechanism:
237237

238238
.. code-block:: csharp
239239

240-
var mongoClient = new MongoClient("mongodb://<db_username>:<db_password>@<hostname>/?authSource=<authenticationDb>&authMechanism=PLAIN");
240+
var mongoClient = new MongoClient("mongodb://<username>:<password>@<hostname>/?authSource=<authenticationDb>&authMechanism=PLAIN");
241241

242242
.. tab:: MongoCredential
243243
:tabid: mongo-credential
244244

245245
.. code-block:: csharp
246246
:emphasize-lines: 1
247247

248-
var credential = MongoCredential.CreatePlainCredential("<authenticationDb>", "<db_username>", "<db_password>");
248+
var credential = MongoCredential.CreatePlainCredential("<authenticationDb>", "<username>", "<password>");
249249
var settings = MongoClientSettings.FromConnectionString("<connection string>");
250250
settings.Credential = credential;
251251
var mongoClient = new MongoClient(settings);

0 commit comments

Comments
 (0)