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

(empty) database is created when non-authorized user is trying to connect

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.2
    • Security
    • Oracle Linux 64-bit

    Description

      HI,
      When a non-authorized user is trying to connect to the MongoDB
      List of databases:
      wfm:PRIMARY> show dbs
      admin 0.203125GB
      local 1.015625GB

      UNIX> mongo -u edik -p edik usatl-s-ssvm41/edik
      MongoDB shell version: 2.2.2
      connecting to: usatl-s-ssvm41/edik
      Error:

      { errmsg: "auth fails", ok: 0.0 }

      Fri Dec 7 16:57:33 uncaught exception: login failed
      exception: login failed

      The empty database “edik” is created
      wfm:PRIMARY> show dbs
      admin 0.203125GB
      edik (empty)
      local 1.015625GB
      Is there any way to prevent this?

      Thanks,
      Edouard

      Attachments

        Activity

          People

            Unassigned Unassigned
            eperov Edouard Perov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: