diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2013-10-29 10:49:28 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2013-10-30 17:02:41 -0400 |
commit | 98fcff0c91c39794d37a08a86c37334406af2873 (patch) | |
tree | 20955b40c720908f989e5447570a4ac2ef7fb9b4 /src/mongo/db/auth/auth_index_d.cpp | |
parent | c63749eda51417e26bee88654845c689701bd919 (diff) | |
download | mongo-98fcff0c91c39794d37a08a86c37334406af2873.tar.gz |
SERVER-11426 change C++ drive to accept both userSource and db as the DB to authenticate against in the auth helper
Diffstat (limited to 'src/mongo/db/auth/auth_index_d.cpp')
-rw-r--r-- | src/mongo/db/auth/auth_index_d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/auth/auth_index_d.cpp b/src/mongo/db/auth/auth_index_d.cpp index 2e2490f746f..eb1e8bdbfe4 100644 --- a/src/mongo/db/auth/auth_index_d.cpp +++ b/src/mongo/db/auth/auth_index_d.cpp @@ -55,13 +55,13 @@ namespace { v1SystemUsersKeyPattern = BSON(AuthorizationManager::V1_USER_NAME_FIELD_NAME << 1 << AuthorizationManager::V1_USER_SOURCE_FIELD_NAME << 1); v2SystemUsersKeyPattern = BSON(AuthorizationManager::USER_NAME_FIELD_NAME << 1 << - AuthorizationManager::USER_SOURCE_FIELD_NAME << 1); + AuthorizationManager::USER_DB_FIELD_NAME << 1); v2SystemRolesKeyPattern = BSON(AuthorizationManager::ROLE_NAME_FIELD_NAME << 1 << AuthorizationManager::ROLE_SOURCE_FIELD_NAME << 1); v2SystemUsersIndexName = std::string( str::stream() << AuthorizationManager::USER_NAME_FIELD_NAME << "_1_" << - AuthorizationManager::USER_SOURCE_FIELD_NAME << "_1"); + AuthorizationManager::USER_DB_FIELD_NAME << "_1"); v2SystemRolesIndexName = std::string( str::stream() << AuthorizationManager::ROLE_NAME_FIELD_NAME << "_1_" << |