[SERVER-47188] Command saslStart returns empty `errmsg` in response when unknown mechanism requested Created: 30/Mar/20  Updated: 29/Oct/23  Resolved: 31/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.0
Fix Version/s: 4.4.0-rc1, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
duplicates SERVER-46877 saslStart command fails without an er... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Security 2020-04-06
Participants:

 Description   

admin.runCommand({saslStart: 1, mechanism: 'unknown-mech', payload: '...'});

Response on 4.4+ { ok: 0.0, errmsg: ''}

Response on 4.2- {"ok":

{"$numberDouble":"0.0"}

,"errmsg": "Unsupported mechanism 'unknown-mech' on authentication database 'admin'","code": {"$numberInt":"2"},"codeName": "BadValue"}



 Comments   
Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-47188 Return appropriate error messages from saslStart

(cherry picked from commit fa4a240d42c56c60b1af0ec7f69f5fc8dca28902)
Branch: v4.4
https://github.com/mongodb/mongo/commit/6a39e3994525cac0ff5f6722532316a37512a8ae

Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-47188 Return appropriate error messages from saslStart
Branch: master
https://github.com/mongodb/mongo/commit/fa4a240d42c56c60b1af0ec7f69f5fc8dca28902

Generated at Thu Feb 08 05:13:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.