Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4286

When we have two users with the same name, but created for different databases, and one of them is Admin db, conflicts of authentication happen, to be precise the user from other db can't login in system using own password.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Security

      Steps to reproduce:
      1. Create user "bob" with password: "adminpwd" and authentication db: "admin"
      2. Create user "bob" with password: "pwd" and authentication db: "anyOtherDb"
      3. Try to login with the second user using java driver (higher than 4.0.6)  - result is failure (see attachment issue 1.png)
      4. Try to login with the second user using java driver (4.0.6) - result is success (see attachment issue 2.png)

       

      Additional notes:
      If there is only one user "bob" (second) in system - authentication is successful for all java drivers.

       

       

        1. issue 1.png
          issue 1.png
          106 kB
        2. issue 2.png
          issue 2.png
          85 kB
        3. Stacktrace.txt
          4 kB
        4. user creation.png
          user creation.png
          46 kB

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            tsekot.sergey@gmail.com Sergey Tsekot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: