Details
-
Bug
-
Resolution: Done
-
Major - P3
-
mongodb-2.6
-
None
Description
Release notes for 2.5 has the following example:
use $external
|
db.auth(
|
{
|
mechanism: "PLAIN",
|
user: "application/reporting@EXAMPLE.NET",
|
password: "some1nterestingPwd",
|
digestPassword: false
|
}
|
)
|
The password parameter should be pwd: not password:, auth expects either (username, password) or (
{ user: username, pwd: password }) (from the db._authOrThrow() code)
*We might also consider updating http://docs.mongodb.org/manual/reference/method/db.auth/ to reflect this *