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

All authentication fails when auth schema version 4 used with SCRAM as only mechanism

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.7.7
    • 2.7.7
    • Security
    • None

    Description

      Encountered against Amazon SSL 64-bit 2.7.7-pre build from this morning. (at commit 986d4a410e).

      When authSchemaVersion=4 is used together with --setParameter authenticationMechanisms=SCRAM-SHA-1, authentication on the shell always fails, even when explicitly specifying the mechanism.

      For example:

      > use admin
      > db.auth({user:"admin", pwd:"foo", mechanism:"SCRAM-SHA-1"})
      Error: 18 Authentication failed.
      0

      The server log contains the following message on each failed attempt when specifying the mechanism:

      2014-09-19T20:36:57.602+0000 I ACCESS   [conn4] SCRAM-SHA-1 authentication failed for admin on admin ; BadValue Illegal value for authorization data schema version, 4

      Attachments

        Issue Links

          Activity

            People

              greg.mckeon@mongodb.com Gregory McKeon (Inactive)
              john.morales@mongodb.com John Morales
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: