summaryrefslogtreecommitdiff
path: root/db/repl/rs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/repl/rs.cpp')
-rw-r--r--db/repl/rs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/repl/rs.cpp b/db/repl/rs.cpp
index 88d66c2b47b..ed0eb3b18c5 100644
--- a/db/repl/rs.cpp
+++ b/db/repl/rs.cpp
@@ -645,6 +645,9 @@ namespace mongo {
assert(!replSet);
return;
}
+ if( !noauth ) {
+ cc().getAuthenticationInfo()->authorize("local");
+ }
(theReplSet = new ReplSet(*replSetCmdline))->go();
}
catch(std::exception& e) {