Skip to content

Commit cb2cb85

Browse files
author
Sam Kleinman
committed
merge: DOCS-79
2 parents 70dd87e + 154f62f commit cb2cb85

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

draft/tutorial/control-access-to-mongodb-with-authentication.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,29 @@ for each database.
192192
{ "_id": ObjectId("507420ba032a960d16f43951"), "user": "eve", "readOnly": false, "pwd": "5dcc2819b97e68d5cfe51da6cae8a7f6" }
193193

194194
Alice has read and write accounts on both ``db1`` and ``db2`` and
195-
also has access on the ``admin`` database. Consider the following:
195+
also has access on the ``admin`` database. Consider the following
196+
example where Alice authenticates to the ``admin`` db:
196197

197198
.. code-block:: javascript
198199

199200
use admin
200201
db.auth("alice", "pass")
201202

203+
Consider the output of :method:`find() <db.collection.find()>` on
204+
the ``system.users`` collection:
205+
206+
.. code-block:: javascript
207+
202208
db.system.users.find()
203209

204-
This operation returns the following document:
210+
The following output confirms that the user has the same password and hash:
205211

206212
.. code-block:: javascript
207213

208214
{ "_id": ObjectId("50742045032a960d16f43950"), "user": "alice", "readOnly": false, "pwd": "ac2061b4a08ef8f2d60a07dc18ab4a0a" }
209215

216+
Thanks to Will Urbanksi, from Dell SecureWorks, for identifying this issue.
217+
210218
Configuration Considerations for Authentication
211219
-----------------------------------------------
212220

0 commit comments

Comments
 (0)