MongoDB shell version: 2.4.9
connecting to: <host>/test
> db.system.users.find()
error: { "$err" : "not authorized for query on test.system.users", "code" : 16550 }
Any attempts specifying a username and no password get rejected outright:
$ mongo <host> -u username
MongoDB shell version: 2.4.9
connecting to: <host>/test
Wed Mar 12 14:02:00.125 Error: 18 { code: 18, ok: 0.0, errmsg: "auth fails" } at src/mongo/shell/db.js:228
exception: login failed
So why are remote connections without a username specified allowed (opening up a whole slew of security concerns) where remote connections with a username are outright rejected? Is this by design? Is this a bug? Is my server configured incorrectly?