summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2013-09-12 11:02:42 +0100
committerAndreas Nilsson <andreas.nilsson@10gen.com>2013-09-12 11:06:55 +0100
commit304acad4f7c021441aa3e5d019d5a9060bca9532 (patch)
tree42c342ccc357313d9bd285f276e3c0080f7efcd8 /src/mongo/db/commands/authentication_commands.cpp
parent755dee05b9bbc5059b61ec09085c8ef003eb3f74 (diff)
downloadmongo-304acad4f7c021441aa3e5d019d5a9060bca9532.tar.gz
SERVER-10339 Changed OU in client.pem and changed failed x.509 auth msg
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.cpp')
-rw-r--r--src/mongo/db/commands/authentication_commands.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/authentication_commands.cpp b/src/mongo/db/commands/authentication_commands.cpp
index e4aba7c9c8d..1f511602458 100644
--- a/src/mongo/db/commands/authentication_commands.cpp
+++ b/src/mongo/db/commands/authentication_commands.cpp
@@ -270,8 +270,10 @@ namespace mongo {
// Handle internal cluster member auth, only applies to server-server connections
if (srvClusterId == peerClusterId) {
if (cmdLine.clusterAuthMode.empty() || cmdLine.clusterAuthMode == "keyfile") {
- return Status(ErrorCodes::AuthenticationFailed,
- "X509 authentication is not allowed for cluster authentication");
+ return Status(ErrorCodes::AuthenticationFailed, "The provided certificate "
+ "can only be used for cluster authentication, not client "
+ "authentication. The current configuration does not allow "
+ "x.509 cluster authentication, check the --clusterAuthMode flag");
}
authorizationSession->grantInternalAuthorization();
}