Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12818

Lock/Disable and Unlock/Enable a User

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Admin, Security
    • Labels:
      None
    • Server Security

      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
      > 
      

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            ger.hartnett@mongodb.com Ger Hartnett
            Votes:
            15 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated: