summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/security_key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/security_key.cpp')
-rw-r--r--src/mongo/db/auth/security_key.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/security_key.cpp b/src/mongo/db/auth/security_key.cpp
index 1ee9be06a99..e69696d6a6b 100644
--- a/src/mongo/db/auth/security_key.cpp
+++ b/src/mongo/db/auth/security_key.cpp
@@ -141,7 +141,8 @@ namespace mongo {
internalSecurity.user->getName().getUser().toString(), str);
internalSecurity.user->setCredentials(credentials);
- if (cmdLine.clusterAuthMode == "keyfile" || cmdLine.clusterAuthMode == "sendKeyfile") {
+ if (serverGlobalParams.clusterAuthMode == "keyfile" ||
+ serverGlobalParams.clusterAuthMode == "sendKeyfile") {
setInternalUserAuthParams(
BSON(saslCommandMechanismFieldName << "MONGODB-CR" <<
saslCommandUserSourceFieldName <<