[DOCS-2161] Outdated addUser() example in kerberos documentation Created: 28/Oct/13  Updated: 07/Jan/14  Resolved: 14/Nov/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: mongodb-2.6

Type: Bug Priority: Major - P3
Reporter: Luke Lovett Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Days since reply: 10 years, 12 weeks, 5 days ago

 Description   

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"} ]
            } )



 Comments   
Comment by Githook User [ 22/Nov/13 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-2161 new create user syntax

Signed-off-by: Sam Kleinman <samk@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/db7abfce43ca45983afba17d25222b197b9ab84e

Generated at Thu Feb 08 07:42:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.