[DOCS-1584] 2.5 release notes, LDAP section, db.auth has password parameter wrong Created: 07/Jun/13  Updated: 30/Oct/23  Resolved: 07/Jun/13

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

Type: Bug Priority: Major - P3
Reporter: Michael Grundy Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 36 weeks, 5 days ago

 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 *



 Comments   
Comment by auto [ 07/Jun/13 ]

Author:

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

Message: DOCS-1584 change field name password to pwd
Branch: master
https://github.com/mongodb/docs/commit/d54172176277d9027f9d1e83bdd3a53251a72c7c

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