[SERVER-31045] createUser fails after dropping all users Created: 11/Sep/17  Updated: 09/Oct/17  Resolved: 12/Sep/17

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

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Mark Agarunov
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-18415 Dropping admin user doesn't reenable ... Closed
Operating System: ALL
Participants:

 Description   

A mongod started with --auth allows the first user to be created via the localhost exception, and then all further operations require auth. In the past, after all users were dropped, mongod returned to this initial state. Now, it seems to reject the createUser command after all users are dropped:

not authorized on admin to execute command { createUser: "user", pwd: "xxx", digestPassword: false, roles: [ "root" ], $db: "admin" }

I'm connecting to 127.0.0.1. I haven't investigated to see when this behavior change happened.



 Comments   
Comment by A. Jesse Jiryu Davis [ 12/Sep/17 ]

Oh thanks, I see that this is the second time I've opened this ticket, but I'd forgotten about the first one!

Comment by Mark Agarunov [ 12/Sep/17 ]

Hello jesse,

Thank you for the report. Looking over the behavior you've described, this looks to be a duplicate of SERVER-18415. The localhost exception is disabled for all connections after the first user has been created. As this is a similar request to SERVER-18415, I've closed this ticket as a duplicate.

Thanks,
Mark

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