2.1 make getLastError require auth, which it didn't in 2.0 and earlier.
> mkdir tempdb
> mongod --auth --dbpath tempdb/
> mongo
MongoDB shell version: 2.0.1
connecting to: test
test[19:11:40]> use admin
switched to db admin
admin[19:11:42]> db.addUser("admin","password")
Mon Nov 7 19:11:52 uncaught exception: getlasterror failed:
admin[19:11:52]> db.auth('admin','password')
1
admin[19:11:58]> db.system.users.find()
- depends on
-
SERVER-6246 Manipulate user objects exclusively via commands
- Closed
- is duplicated by
-
SERVER-6101 Error when bootstrapping 2.1.x with auth from localhost
- Closed
- related to
-
PYTHON-407 Adding first user from localhost works but raises OperationFailure
- Closed