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

Authentication fail when try to connect with Authentication Database of numeric type

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 1.15.0, 1.16.0
    • Component/s: Compass
    • None
    • Environment:
      windows 10
    • Iteration Limoncello, Iteration Naan

      We have mongo users and Authentication Database that are like 000010 (numbers with leading 0).  We see in mongo log that compass translate the Authentication Database string in number (in the example 000010 string become 10 number). So the uthentication fail.

      Example of log row with error:

      2018-08-29T09:23:29.522+0200 I ACCESS [conn50898035] SCRAM-SHA-1 authentication failed for 008373 on 8373 from client 192.168.15.66:30464 ; UserNotFound: User "008373@8373" not found

      The Authentication Database is not 8373 but 008373. The string is converted to number.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            luca.formaggio Luca Formaggio
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: