diff options
author | Shane Harvey <shane.harvey@mongodb.com> | 2016-03-25 17:13:17 -0400 |
---|---|---|
committer | Shane Harvey <shane.harvey@mongodb.com> | 2016-04-13 14:19:55 -0400 |
commit | 26b55942cc467bca2cc2b935e517b443cf16c550 (patch) | |
tree | 770b6987c9ffa3796135a735deeb9299d842ba5c /src/mongo/db/cloner.cpp | |
parent | 0b490582031c2be63239ac0885801739946a2a78 (diff) | |
download | mongo-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.cpp | 3 |
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"); } |