Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4430

User name not correctly stored for SCRAM based authentication

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.24.1
    • Affects Version/s: 1.22.1
    • Component/s: Compass
    • None
    • Environment:
      Windows 10
    • 3
    • Iteration Orange
    • Not Needed

       

       

      To reproduce:

       

      1. Run up a mongo server like so:
      docker run --rm -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoroot -e MONGO_INITDB_ROOT_PASSWORD=password mongo:4.2.6

      2. In compass:
        New connection -> Fill in fields manually -> Authentication: SCRAM-SHA-256 -> Username: mongoroot, Password: password -> Connect

      Compass should connect ok.

      3. Favourite-> Enter a name -> Save
       
      4. Connect -> disconnect
       
      5. [The new favourite should still be selected] Paste connection string -> Connect
       
       
      At this point you should see "Authentication Failed" Error.
       
      In the server logs I also see: 

       

      2020-09-30T16:35:28.147+0000 I ACCESS [conn104] SASL SCRAM-SHA-256 authentication failed for undefined on admin from client 172.17.0.1:35858 ; UserNotFound: Could not find user "undefined" for db "admin"

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthew.shaylor@gmail.com Matthew Shaylor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: