Details
Description
Please provide the ability to lock/disable and unlock/enable a user account.
The user can login
$ mongo test -u author -p pass
|
MongoDB shell version: 2.4.8
|
connecting to: test
|
>
|
Now admin locks/disables the user
> db.lockUser("author")
|
The user can't login
$ mongo test -u author -p pass
|
MongoDB shell version: 2.4.8
|
connecting to: test
|
Fri Feb 21 10:17:40.514 Error: 18 { code: 18, ok: 0.0, errmsg: "auth fails" } at src/mongo/shell/db.js:228
|
exception: login failed
|
Unlock the user
> db.unlockUser("author")
|
And now author can login again
$ mongo test -u author -p pass
|
MongoDB shell version: 2.4.8
|
connecting to: test
|
>
|
Attachments
Issue Links
- is related to
-
SERVER-12785 Support start/end times for active roles and user accounts
-
- Open
-