[SERVER-56645] MongoDB does not start with authorization enabled Created: 05/May/21  Updated: 06/May/21  Resolved: 06/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Brian Rivera Assignee: Edwin Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

add

security:

authorization: enabled to the config file, restart the service and try logging in.

Participants:

 Description   

Every time I enable "security: authorization: enabled", I get the following error -

"connecting to: mongodb://127.0.0.1:27017/?authSource=admin&gssapiServiceName=mongodb
2021-05-05T03:17:04.013+0000 E QUERY [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:356:17
@(connect):2:6
exception: connect failed"



 Comments   
Comment by Edwin Zhou [ 06/May/21 ]

Hi brianrl567@gmail.com,

We're happy to hear you've been able to resolve this issue. Thank you for following up!

As a reminder, please note that the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, for future issues I encourage you to ask our community by posting on the MongoDB Developer Community Forums.

Best,
Edwin

Comment by Brian Rivera [ 06/May/21 ]

So it seems that I did not include two spaces before "authorization: enabled". Issue has been resolved. Thank you

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