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

Auth failed on sharding

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.4
    • Component/s: Security
    • Environment:
      2 shard servers, 1 config server, 1 user db, 1 shard coll
    • Linux

      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()...

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

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

              Created:
              Updated:
              Resolved: