-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
On the page "Deploy MongoDB with Kerberos Authentication", there is an example of adding a user to the database for use with kerberos, but the syntax is outdated (as of 2.5.3, I believe). The example is:
db = db.getSiblingDB("records") db.addUser( { "user": "application/reporting@EXAMPLE.NET", "roles": [ "read" ], "userSource": "$external" } )
and should be:
db = db.getSiblingDB("$external") db.addUser( { "user": "application/reporting@EXAMPLE.NET", "roles": [ { "role":"read", db:"records"} ] } )