New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add User dialog creates invalid users that won't actually work to auth with MongoDB #1041

Open
juliashibalko opened this Issue Feb 25, 2016 · 24 comments

Comments

@juliashibalko
Copy link
Collaborator

juliashibalko commented Feb 25, 2016

Robomongo versions checked: 0.8.5 at first, then latest 0.9.0-RC4

@AdamAndersonFalafelSoftware

This comment has been minimized.

Copy link

AdamAndersonFalafelSoftware commented Feb 26, 2016

Steps:(Windows version)

  • MongoDB version 2.6.11
  • Connect to a DB
  • Expand to the Users folder
  • Right-click and choose Add User
  • Enter Username and Password; select a few roles
  • Click OK
  • Note that the User document appears as a child under the Users folder in the left pane
  • Right-clicking on the Users folder and choosing View Users will display the created User. Note that the command executed is db.system.users.find()
  • Test auth by entering db.auth('<username>', '<password>') into the console
  • Observe that the response is Error: auth failed 0

You can create a user that does work with db.auth() by using db.createUser(). You can list these users with db.getUsers().

@juliashibalko

This comment has been minimized.

Copy link
Collaborator Author

juliashibalko commented Feb 26, 2016

@AdamAndersonFalafelSoftware Thanks Adam for adding details! We'll address that in the upcoming releases.

@juliashibalko

This comment has been minimized.

Copy link
Collaborator Author

juliashibalko commented Aug 16, 2016

@christangga

This comment has been minimized.

Copy link

christangga commented Dec 23, 2016

is this solved in the new release?

@simsekgokhan

This comment has been minimized.

Copy link
Collaborator

simsekgokhan commented Dec 26, 2016

Hi @christangga , unfortunately not, the current heavy weight work is delivering critical features like Replcia Sets and Export/Import asap. User management is planned to after those.
Please see here: https://github.com/paralect/robomongo#whats-planned-for-the-next-releases

@Aninstance

This comment has been minimized.

Copy link

Aninstance commented Jun 13, 2017

This issue still persists, Robomongo 1.0.0, MongoDB 2.6.12.

@alandroid

This comment has been minimized.

Copy link

alandroid commented Aug 3, 2017

Issue persists with Robo 3T 1.1.1 (mac) and MongoDB 3.4.6 ('db version' from mongod -v)

Was not able to use Robo 3T 'Explorer' to create users via 'Add User...' option on 'admin' db 'Users' collection right-click menu.

Had to use db.CreateUser() and then manually craft the document/bson.

screen shot 2017-08-03 at 7 27 33 pm

@Kroderia

This comment has been minimized.

Copy link

Kroderia commented Sep 14, 2017

Same issue as @alandroid with Robo 3T 1.1.1 (Windows 10) and Mongodb 3.2.13

@dickreuter

This comment has been minimized.

Copy link

dickreuter commented Nov 26, 2017

Still not solved

@hiasel

This comment has been minimized.

Copy link

hiasel commented Nov 27, 2017

Unfortunately the issue is still not solved.
Robo3T: Version 1.1.1 for Mac
Mongo: 3.4.10

As @alandroid pointed out, a current workaround is to create users inside the command-window of Robot3T. Adding a user called "myuser" to the db "mydb" looks like this:

use mydb
db.createUser( { user: "myuser",
                 pwd: "mypw",
                 roles: [ { role: "readWrite", db: "mydb" }] },
               { w: "majority" , wtimeout: 5000 } 
              )

See: https://docs.mongodb.com/manual/reference/method/db.createUser/

@Trapholov

This comment has been minimized.

Copy link

Trapholov commented Apr 5, 2018

Still not solved

@dejayc

This comment has been minimized.

Copy link

dejayc commented Apr 25, 2018

If this joke of a feature is still not implemented two years later, maybe the developers should just remove the "Add User" option from the menu?

@nanomo

This comment has been minimized.

Copy link

nanomo commented Aug 2, 2018

Still not solved, lost big time with this bug, please add at least a modal warning with a message!

@vetinary

This comment has been minimized.

Copy link

vetinary commented Aug 6, 2018

OH! MY! GOD! It took me half a day to find this topic and find out, that problem was not in my software, but in Robo 3T app. 🤦‍♂️

@Tarpsvo

This comment has been minimized.

Copy link

Tarpsvo commented Aug 20, 2018

Well, I joined the lost two hours past midnight club here. This should be high priority.

@NobleKayHara

This comment has been minimized.

Copy link

NobleKayHara commented Sep 4, 2018

Really though??? Why is it even there in the first place. Goodness

@dejayc

This comment has been minimized.

Copy link

dejayc commented Sep 4, 2018

It's there to confuse new users for years on end.

@ardennext99

This comment has been minimized.

Copy link

ardennext99 commented Oct 15, 2018

Still present in my configuration:

Robo 3T 1.2.1 + MongoDB 2.7.0

If I create an user in Robo 3T by "Add user" function, I cannot find it by "db.getUsers()" command line.
If I create an user by command line, when i refresh the Robo 3T users compaer "mongodb wrong type for field (_id) string = 7"

When we can hope a fix?
Robo 3T should be the "Sql Server Management Studio" for MongoDB, but with this bug.....

@gp2015

This comment has been minimized.

Copy link

gp2015 commented Oct 22, 2018

Also having this issue. When I create a user from the shell, no problem, but using the GUI the user created is not able to authenticate. v1.2.1

@alandroid

This comment has been minimized.

Copy link

alandroid commented Oct 22, 2018

Still not solved. This software is outdated.

@macxu

This comment has been minimized.

Copy link

macxu commented Nov 14, 2018

still not solved.... I spent more than an hour on it and it turned out to be a known issue on the software...

@PathToLife

This comment has been minimized.

Copy link

PathToLife commented Jan 2, 2019

Wasted 2 hours of my time. Rip. Is this fixed in the overpriced Studio3T?

@PathToLife

This comment has been minimized.

Copy link

PathToLife commented Jan 2, 2019

Hey fix found
Use:
https://github.com/nosqlclient/nosqlclient

simsekgokhan added a commit that referenced this issue Feb 2, 2019

Attemp to fix #638 #1041: View users code updated. And UI change: Dis…
…abling user source and password mutual exclusivity.

simsekgokhan added a commit that referenced this issue Feb 5, 2019

Attempt to fix #638 #1041: MongoClient getUsers() updated and so in U…
…I database explorer previously not visible users are now visible. And removing unused MongoUser code.
@simsekgokhan

This comment has been minimized.

Copy link
Collaborator

simsekgokhan commented Feb 17, 2019

Hi All, we are very sorry for the long delay.
We have some fixes and new features related to user management. Currently, the limitation is Robo supports fixed usersource for user creation. Please try our beta:

Robo 3T 1.3 Beta
https://github.com/Studio3T/robomongo/releases/tag/v1.3.0-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment