summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.h
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2014-11-11 15:18:38 -0500
committerAndreas Nilsson <andreas.nilsson@10gen.com>2014-11-12 10:54:00 -0500
commit7c8b3c68da9dd93641c59e6cff7a47a264fd68b4 (patch)
treef7e97343e642ea1e5db5279ee155731aaf7a9354 /src/mongo/db/auth/user.h
parent5e06026b4b72cc252a7168569ffd78f8e9811d23 (diff)
downloadmongo-7c8b3c68da9dd93641c59e6cff7a47a264fd68b4.tar.gz
SERVER-16009 Always initializing credentials for __system user.
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r--src/mongo/db/auth/user.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h
index 3950e42090a..d920abdda9d 100644
--- a/src/mongo/db/auth/user.h
+++ b/src/mongo/db/auth/user.h
@@ -59,12 +59,23 @@ namespace mongo {
MONGO_DISALLOW_COPYING(User);
public:
struct SCRAMCredentials {
+ SCRAMCredentials() :
+ iterationCount(0),
+ salt(""),
+ serverKey(""),
+ storedKey("") {}
+
int iterationCount;
std::string salt;
std::string serverKey;
std::string storedKey;
};
struct CredentialData {
+ CredentialData() :
+ password(""),
+ scram(),
+ isExternal(false) {}
+
std::string password;
SCRAMCredentials scram;
bool isExternal;