Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1584

2.5 release notes, LDAP section, db.auth has password parameter wrong

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • mongodb-2.6
    • manual
    • 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 *

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            michael.grundy Michael Grundy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 36 weeks, 5 days ago