[COMPASS-3090] Authentication fail when try to connect with Authentication Database of numeric type Created: 29/Aug/18  Updated: 29/Oct/23  Resolved: 27/Sep/18

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.15.0, 1.16.0
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Luca Formaggio Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 10


Issue Links:
Depends
depends on NODE-1681 Reintroduce custom property support t... Closed
Problem/Incident
is caused by NODE-1675 New URL parser rejects db names made ... Closed
Epic Link: COMPASS-2286
Sprint: Iteration Limoncello, Iteration Naan

 Description   

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.



 Comments   
Comment by Durran Jordan [ 27/Sep/18 ]

This is still blocked until mongodb-core is released with the fix.

 

Comment by Anna Herlihy (Inactive) [ 12/Sep/18 ]

Can recreate

Generated at Wed Feb 07 22:32:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.