summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.cpp
diff options
context:
space:
mode:
authorShane Harvey <shane.harvey@mongodb.com>2016-03-25 17:13:17 -0400
committerShane Harvey <shane.harvey@mongodb.com>2016-04-13 14:19:55 -0400
commit26b55942cc467bca2cc2b935e517b443cf16c550 (patch)
tree770b6987c9ffa3796135a735deeb9299d842ba5c /src/mongo/db/cloner.cpp
parent0b490582031c2be63239ac0885801739946a2a78 (diff)
downloadmongo-26b55942cc467bca2cc2b935e517b443cf16c550.tar.gz
SERVER-6823 Enable Access control without downtime.
Add --tryClusterAuth flag that enables communicatation between nodes running with and without auth.
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r--src/mongo/db/cloner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index cce155af8cd..e7789c2ac92 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -470,8 +470,7 @@ Status Cloner::copyDb(OperationContext* txn,
return Status(ErrorCodes::HostUnreachable, errmsg);
}
- if (getGlobalAuthorizationManager()->isAuthEnabled() &&
- !con->authenticateInternalUser()) {
+ if (isInternalAuthSet() && !con->authenticateInternalUser()) {
return Status(ErrorCodes::AuthenticationFailed,
"Unable to authenticate as internal user");
}