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.
>var p = db.usercoll.find();
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");