MongoVUE user creation seems not to work properly

782 Views Asked by At

I've installed mongodb server v.2.6.1 and followed all the installation steps (as in previous times) and worked fine (I run the server and from another cmd I connect to it and everything is ok).

I also installed MongoVUE v.1.6.9 and when I create users from there, they don't appear when in the cmd I write show users, they only appear when I write db.system.users.find().

So if I want to be able to connect to any database, even from MonogoVUE, I need to create the users from de cmd as db.addUser("username", "password") (I know it is deprecated for my current version but it works) and then I get different users when I write show users or db.system.users.find() since the former are the ones created in the cmd and the latter the ones created in MongoVUE.

This behaviour seems strange to me and I can't figure out why. Maybe I am missing some config parameters but in others installations I never had such problems.

I've reinstalled MongoVUE but I'm not sure if I'm getting rid of the previous bad config since after reinstalling it knows the parameters of my connection (port, user...). My OS is Windows7 with SP1.

2

There are 2 best solutions below

0
Watchmaker On BEST ANSWER

Well, after some research I finally decided to install the previous stable version of the mongodb server (v 2.4.10) and that's how I fixed it.

Version 2.6.x seemed to show that hiccup with MongoVUE in my environment (Windows7 with SP1). I still don't know why.

2
Stennie On

MongoDB 2.6 introduced a new model for storing authentication data, as well as additional security features like user-defined roles. In MongoDB 2.6 all user and role information is now stored in the system.users and system.roles collections in the admin database. There are also new shell helpers and commands for User and Role Management.

Some commands like db.addUser() have been deprecated in the mongo 2.6 shell and mapped to their modern equivalents so they will continue to work until you learn the new commands.

For example:

 > db.addUser("username", "password")
 WARNING: The 'addUser' shell helper is DEPRECATED. Please use 'createUser' instead
 Successfully added user: { "user" : "username", "roles" : [ "dbOwner" ] }

If you created users in a previous version of MongoDB you may see the old database-specific system.users collections which are left after migration to the 2.6+ authentication format. These are no longer used.