Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
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
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
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.