-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: 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()...