[SERVER-16789] Error code when enable auth=true , mongodb 2.6 Created: 09/Jan/15  Updated: 14/Apr/16  Resolved: 02/Mar/15

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

Type: Bug Priority: Major - P3
Reporter: Hieu Phan Trong Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Default, we can connect to mongo without password, it's not secure.
I want any user connect to mongodb have to enter password.
I comment out this line in the /etc/mongod.conf file
auth = true

After that we can connect to mongodb using password. But when execute command, i see the errors

uncaught exception: {
"ok" : 0,
"errmsg" : "not authorized on dbname to execute command

{ $eval: \"R900_GETTOTALALL(106)\" }

",
"code" : 13
}

Please help
HIEUPT



 Comments   
Comment by Ramon Fernandez Marina [ 23/Jan/15 ]

gsphan, we haven't heard back from you for a while. If this is still an issue for you, can you please describe in detail the steps you followed to add users, connect to the database, and what's the exact sequence of events that triggers the error you describe above?

Thanks,
Ramón.

Comment by Ramon Fernandez Marina [ 09/Jan/15 ]

gsphan, can you please describe in detail the steps you followed to add users, connect to the database, and what's the exact sequence of events that triggers the error you describe above?

Generated at Thu Feb 08 03:42:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.