// MapReduce executed by a read-only user when --auth enabled should only be able to use inline mode. Other modes require writing to an output collection which is not allowed. SERVER-3345 baseName = "jstests_mr_auth"; dbName = "test"; out = baseName + "_out"; map = function(){ emit( this.x, this.y );} red = function( k, vs ){ var s=0; for (var i=0; i