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

Avoid double-authentication during connect from mongo shell

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.7, 4.1.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.0
    • Security 2019-01-28
    • 5

      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.

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

              Created:
              Updated:
              Resolved: