[SERVER-10794] For compatibility with old versions of the shell, db.addUser("user", "password") should create a super-user. Created: 16/Sep/13 Updated: 30/Oct/15 Resolved: 11/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security, Shell |
| Affects Version/s: | 2.5.2 |
| Fix Version/s: | 2.5.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
On databases other than "admin", db.addUser("user", "password") will be equivalent to
On databases other than "admin", db.addUser("user", "password", true) will be equivalent to
On the "admin" database, db.addUser("user", "password") will be equivalent to
On the "admin" database, db.addUser("user", "password", true) will be equivalent to
Any use of these 2- and 3-argument forms of db.addUser() will cause the shell to display a warning message to the user, and may cause the server to write a warning message to the startupWarnings log and perhaps the diagnostic log, indicating that this form is deprecated, and will be removed in a future release of MongoDB. There will be no db.addUser("user", "password", [roles]) form of the addUser command in 2.6. |
| Comments |
| Comment by auto [ 12/Oct/13 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: |
| Comment by auto [ 11/Oct/13 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |
| Comment by Andy Schwerin [ 09/Oct/13 ] |
|
Role names in this ticket are now finalized. |
| Comment by Andy Schwerin [ 16/Sep/13 ] |
|
Role names in this ticket will be finalized in time for the 2.5.3 release. |