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

Lock/Disable and Unlock/Enable a User

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Admin, Security
    • None

    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

          Activity

            People

              backlog-server-security Backlog - Security Team
              ger.hartnett@mongodb.com Ger Hartnett
              Votes:
              14 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated: