Skip to content

Commit b69d2e3

Browse files
jmd-mongojeff-allen-mongo
authored andcommitted
DOCS-14395 users may not authenticate as multiple users when --apiStrict
1 parent 18a1c88 commit b69d2e3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/reference/method/db.auth.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,17 @@ prompt the user to enter their password:
219219
use test
220220
db.auth( "myTestDBUser" )
221221

222+
Starting in MongoDB 5.0, if your connection specifies the
223+
:option:`--apiStrict` option, you may not use the :method:`db.auth()`
224+
method to:
225+
226+
- Authenticate again as the same user on the same database.
227+
- Authenticate as a different user when previously authenticated
228+
on the same database.
229+
- Authenticate with a new database when previously authenticated on a
230+
different database.
231+
232+
222233
Authenticate when Connecting to the Shell
223234
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
224235

0 commit comments

Comments
 (0)