summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options.h
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2013-11-14 18:34:21 +0000
committerAndreas Nilsson <andreas.nilsson@10gen.com>2013-11-14 19:11:40 +0000
commit914602bfd51a6a9e83d24abe6e293c749c09c7e0 (patch)
tree9cf1c38d934ec713520ba69a3a3580fcad68bbfc /src/mongo/db/server_options.h
parent9030cdfa8707c06b3f8ad9dfb635c2244abcc84e (diff)
downloadmongo-914602bfd51a6a9e83d24abe6e293c749c09c7e0.tar.gz
SERVER-11431 Change clusterAuthMode with setParameter command
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r--src/mongo/db/server_options.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h
index e051c79adf9..f513d195044 100644
--- a/src/mongo/db/server_options.h
+++ b/src/mongo/db/server_options.h
@@ -76,7 +76,6 @@ namespace mongo {
bool logAppend; // True if logging to a file in append mode.
bool logWithSyslog; // True if logging to syslog; must not be set if logpath is set.
int syslogFacility; // Facility used when appending messages to the syslog.
- std::string clusterAuthMode; // Cluster authentication mode
bool isHttpInterfaceEnabled; // True if the dbwebserver should be enabled.
@@ -101,6 +100,30 @@ namespace mongo {
BSONArray argvArray;
BSONObj parsedOpts;
+ AtomicInt32 clusterAuthMode; // --clusterAuthMode, the internal cluster auth mode
+
+ enum ClusterAuthModes {
+ ClusterAuthMode_undefined,
+ /**
+ * Authenticate using keyfile, accept only keyfiles
+ */
+ ClusterAuthMode_keyFile,
+
+ /**
+ * Authenticate using keyfile, accept both keyfiles and X.509
+ */
+ ClusterAuthMode_sendKeyFile,
+
+ /**
+ * Authenticate using X.509, accept both keyfiles and X.509
+ */
+ ClusterAuthMode_sendX509,
+
+ /**
+ * Authenticate using X.509, accept only X.509
+ */
+ ClusterAuthMode_x509
+ };
};
extern ServerGlobalParams serverGlobalParams;