diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-10-19 18:26:21 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-10-23 10:55:00 -0400 |
commit | 972c32cd09c6dba54b8976f7b78da22146c0078b (patch) | |
tree | 14295e54a4cb3a7d90bd8c5716bf86c8dde8dd9d /src/mongo/shell/replsettest.js | |
parent | c5b1be7817ebce9502a4a0a9ac87fb9a820509b0 (diff) | |
download | mongo-972c32cd09c6dba54b8976f7b78da22146c0078b.tar.gz |
Make ShardingTest add admin users to all its shards when running with auth SERVER-4237
Diffstat (limited to 'src/mongo/shell/replsettest.js')
-rw-r--r-- | src/mongo/shell/replsettest.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index c97bbc7ad04..7c1b30ba63f 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -460,11 +460,9 @@ ReplSetTest.prototype.initiate = function( cfg , initCmd , timeout ) { // Setup authentication if running test with authentication if (jsTestOptions().keyFile && !this.keyFile) { - if (!this.shardSvr) { - master = this.getMaster(); - jsTest.addAuth(master); - jsTest.authenticateNodes(this.nodes); - } + master = this.getMaster(); + jsTest.addAuth(master); + jsTest.authenticateNodes(this.nodes); } } |