-
Type: Improvement
-
Resolution: Done
-
Priority: Blocker - P1
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:MongoDB 2.4
*Location*: http://docs.mongodb.org/manual/tutorial/add-user-to-database/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
*Referrer*: http://docs.mongodb.org/manual/tutorial/add-user-administrator/
*Screen Resolution*: 2560 x 1440
*repo*: docs
*source*: tutorial/add-user-to-database
MongoDB 2.4 *Location*: http://docs.mongodb.org/manual/tutorial/add-user-to-database/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 *Referrer*: http://docs.mongodb.org/manual/tutorial/add-user-administrator/ *Screen Resolution*: 2560 x 1440 *repo*: docs *source*: tutorial/add-user-to-database
Hi,
In 2.2 authentication, db.addUser was used to add a user as well as change the password for existing users but it looks like you get a duplicate key error in 2.4 if you try to use addUser to change a password.
I think the new command is changeUserPassword but I don't see any documentation on it.