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

Auth failed on sharding

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Cannot Reproduce
    • 2.0.4
    • None
    • Security
    • 2 shard servers, 1 config server, 1 user db, 1 shard coll
    • Linux

    Description

      mongod and other component started with --keyFile option.

      1. When I try to find something by mongoshell I have "unathorized".
      User with rw grants are in config db and in user db on both servers.

      >mongo userdb
      >db.auth('...','...');
      1
      >var p = db.usercoll.find();
      unathorized

      2. Also when I try to connect to mongos by JasperReportsServer, I got this "unathorized" error.
      3. When I connect to mongos by JMongoBrowser I also have this error.

      In my java client I don't have problem with auth, and did not have error.

      Mongo mongo1 = new Mongo( "127.0.0.1" );
      DB db = mongo1.getDB("userdb");
      db.authenticate("...");
      db.getCollection("...").find()...

      Attachments

        1. router_20120518.log
          45 kB
        2. router.log
          25 kB
        3. router.log
          25 kB

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            kroniak Nikolay Molchanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: