diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-06-18 19:52:22 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-06-20 15:25:10 -0400 |
commit | 2a2689e7a5823291b125fabddf981ca87ef9a3f0 (patch) | |
tree | 096b17b0fa07d0c23ce9ac84502028cfaf2c4f69 /src/mongo/client/connpool.cpp | |
parent | 849a4fa53f6c99b7b72a9772bef908cb7e88a416 (diff) | |
download | mongo-2a2689e7a5823291b125fabddf981ca87ef9a3f0.tar.gz |
Always use internal credetials when connecting to the config servers. SERVER-1456
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r-- | src/mongo/client/connpool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp index d79265d070f..ebfc187346a 100644 --- a/src/mongo/client/connpool.cpp +++ b/src/mongo/client/connpool.cpp @@ -80,7 +80,11 @@ namespace mongo { _pool.pop(); all.push_back( c ); bool res; + // When a connection is in the pool it doesn't have an AuthenticationTable set. + c.conn->setAuthenticationTable( + AuthenticationTable::getInternalSecurityAuthenticationTable() ); c.conn->isMaster( res ); + c.conn->clearAuthenticationTable(); } for ( vector<StoredConnection>::iterator i=all.begin(); i != all.end(); ++i ) { |