[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. Created: 01/Sep/21  Updated: 04/May/22  Resolved: 07/Sep/21

Status: Closed
Project: Java Driver
Component/s: Security
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Sergey Tsekot Assignee: Ross Lawley
Resolution: Duplicate Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File Stacktrace.txt     PNG File issue 1.png     PNG File issue 2.png     PNG File user creation.png    
Issue Links:
Duplicate
is duplicated by JAVA-4290 Speculative authentication always use... Closed

 Description   

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.

 

 



 Comments   
Comment by Ross Lawley [ 07/Sep/21 ]

Hi tsekot.sergey@gmail.com,

Thanks for reporting this ticket. The issue has been fixed in JAVA-4290 and will be released (today) as part of 4.3.2

All the best,

Ross

Comment by Jeffrey Yemin [ 07/Sep/21 ]

Close as duplicate

Generated at Thu Feb 08 09:01:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.