[DOCS-5350] Comment on: "manual/reference/method/db.auth.txt" Created: 05/May/15  Updated: 03/Nov/17  Resolved: 07/May/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 8.1 Pro x64
mongodb 3.0.2

Location: http://docs.mongodb.org/manual/reference/method/db.auth/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
Referrer: https://www.google.de/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/method/db.auth


Participants:
Days since reply: 8 years, 40 weeks, 6 days ago

 Description   

I make the following call within the mongo shell:

db.auth("admin","admin","MONGODB-CR")

The result is:

ERROR: auth expects either (username, password) or (

{ user: username, pwd: password}

)

It seems there is no possibility for me to define the mechanism.



 Comments   
Comment by Githook User [ 07/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5350 db.auth parameters
Branch: master
https://github.com/mongodb/docs/commit/4a1d720f976385c2656fef93678a0a48e7465efa

Comment by Githook User [ 07/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5350 db.auth parameters
Branch: v2.6
https://github.com/mongodb/docs/commit/87c80f3aaeb8b75f02be4fead1af6dc07130dcde

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