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

saslAuthenticate defaults to wrong database when using GSSAPI mechanism

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.3.2
    • Component/s: None
    • Labels:
      None
    • ALL

      In a shell connected to subscriber edition 2.3.2 the following succeeds authentication but grants no privileges. The code is targeting the wrong userSource as a default. It should target $external, but currently targets $sasl.

      var mongo = db.getMongo();
      mongo.saslAuthenticate({mechanism: "GSSAPI", user: "user@DOMAIN.COM"});
      

      The following works, but shouldn't be required.

      var mongo = db.getMongo();
      mongo.saslAuthenticate({mechanism: "GSSAPI", user: "user@DOMAIN.COM", userSource: "$external"});
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: