If you attempt to do, in the shell:
db.auth("asdf","1")
when talking to mongos, and user "asdf" does not exist, the error message posted to the mongos log is:
2013-10-24T13:40:23.671-0400 [conn1] Failed to authenticate asdf@admin with mechanism MONGODB-CR: AuthenticationFailed Unknown error code 10065 invalid parameter: expected an object ()
This is due to the userInfo command returning an empty "users" array but the code logic is not checking for this condition and is attempting to reference the first element of that array unilaterally (hence the BSON "expected an object" message)
- is duplicated by
-
SERVER-11635 Bad Error Message for User Not Found in Mongos for GSSAPI on Windows
- Closed