summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/isself.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2013-07-03 19:23:25 +0100
committerAndreas Nilsson <andreas.nilsson@10gen.com>2013-07-03 19:27:17 +0100
commitcd3101ca2f8e539a4ad425fa8e6da55a935dd2b1 (patch)
tree28c2891f8327a8c796b92e95cd03b8b26784662f /src/mongo/db/commands/isself.cpp
parent00fb45cd97d2314548dc07c2c8e1cc1737fd273f (diff)
downloadmongo-cd3101ca2f8e539a4ad425fa8e6da55a935dd2b1.tar.gz
Revert "SERVER-7455 Common internal cluster auth function"
Broke auth C++ unit tests This reverts commit 00fb45cd97d2314548dc07c2c8e1cc1737fd273f.
Diffstat (limited to 'src/mongo/db/commands/isself.cpp')
-rw-r--r--src/mongo/db/commands/isself.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/isself.cpp b/src/mongo/db/commands/isself.cpp
index 055f966c3fe..a33c0f8e7a7 100644
--- a/src/mongo/db/commands/isself.cpp
+++ b/src/mongo/db/commands/isself.cpp
@@ -25,7 +25,6 @@
#include "mongo/db/auth/action_type.h"
#include "mongo/db/auth/authorization_manager.h"
#include "mongo/db/auth/privilege.h"
-#include "mongo/db/auth/security_key.h"
#include "mongo/db/jsobj.h"
#include "../../util/net/listen.h"
#include "../commands.h"
@@ -245,7 +244,7 @@ namespace mongo {
}
if (AuthorizationManager::isAuthEnabled() && !cmdLine.keyFile.empty() ) {
- if (!authenticateInternalUser(&conn)) {
+ if (!conn.auth("local", internalSecurity.user, internalSecurity.pwd, errmsg, false)) {
return false;
}
}