diff options
author | Andreas Nilsson <andreas.nilsson@10gen.com> | 2013-07-03 17:09:09 +0100 |
---|---|---|
committer | Andreas Nilsson <andreas.nilsson@10gen.com> | 2013-07-03 18:29:37 +0100 |
commit | 00fb45cd97d2314548dc07c2c8e1cc1737fd273f (patch) | |
tree | 39bad422345f565c4bd8c6728eb8eb8a1e6104b1 /src/mongo/db/commands/isself.cpp | |
parent | 3457954bb082d98dfd769d27771d4e30f3f785a5 (diff) | |
download | mongo-00fb45cd97d2314548dc07c2c8e1cc1737fd273f.tar.gz |
SERVER-7455 Common internal cluster auth function
Diffstat (limited to 'src/mongo/db/commands/isself.cpp')
-rw-r--r-- | src/mongo/db/commands/isself.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/isself.cpp b/src/mongo/db/commands/isself.cpp index a33c0f8e7a7..055f966c3fe 100644 --- a/src/mongo/db/commands/isself.cpp +++ b/src/mongo/db/commands/isself.cpp @@ -25,6 +25,7 @@ #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" @@ -244,7 +245,7 @@ namespace mongo { } if (AuthorizationManager::isAuthEnabled() && !cmdLine.keyFile.empty() ) { - if (!conn.auth("local", internalSecurity.user, internalSecurity.pwd, errmsg, false)) { + if (!authenticateInternalUser(&conn)) { return false; } } |