summaryrefslogtreecommitdiff
path: root/jstests/auth/log_user_basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/log_user_basic.js')
-rw-r--r--jstests/auth/log_user_basic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/log_user_basic.js b/jstests/auth/log_user_basic.js
index 97945245694..ff088b53125 100644
--- a/jstests/auth/log_user_basic.js
+++ b/jstests/auth/log_user_basic.js
@@ -77,7 +77,7 @@ var doTest = function(conn1, conn2) {
var loginUser = function(connInfo, connAuth) {
var db = connInfo.mongo.getDB(connAuth.db);
- db.addUser(connAuth.user, connAuth.pwd);
+ db.addUser({user: connAuth.user, pwd: connAuth.pwd, roles: jsTest.adminUserRoles});
db.auth(connAuth.user, connAuth.pwd);
connInfo.users[connAuth.db] = connAuth.user;
};