Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39128

Avoid double-authentication during connect from mongo shell

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.7, 4.1.8
    • None
    • None
    • Fully Compatible
    • v4.0
    • Security 2019-01-28
    • 5

    Description

      When launching the shell with a username/password specified, either by way of a mongodb:// uri or by pass -user/-password parameters, we see two authentications performed.

      The first is the result of a call to MongoURI::connect() which contains a call to DBClientBase::auth().
      The second is via db.auth() in the Javascript layer.

      This results in multiple round-trips for the extra auth and in the case of Enterprise users, multiple "authenticate" entries in the audit log.

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: