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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.2
    • Component/s: Security
    • Environment:
      Oracle Linux 64-bit
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

                Created:
                Updated:
                Resolved: