[DOCS-5120] Update --password behavior in tools documenation Created: 27/Mar/15  Updated: 30/Oct/23  Resolved: 30/Mar/15

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: mongodb-3.0
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Critical - P2
Reporter: Kyle Erf Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to TOOLS-682 Mongodump no longer asks for password... Closed
is related to TOOLS-504 mongotools needs to be able to read p... Closed
Participants:
Days since reply: 8 years, 30 weeks, 1 day ago

 Description   

In 3.0 we've changed the behavior of password prompting in the tools. Previously, running a tool with --password or -p with no following argument (or with "" as the argument) would cause the tool to prompt the user for a password from the command line.

In >3.0, we've simplified the prompt behavior. If the user enters a username but supplies no password flag, the tools will prompt them for a password if they are using an auth mechanism that requires a password. They can also get this behavior by running -p "", as they could in the old tools. Passing password or p with no argument will cause in error in >3.0 versions



 Comments   
Comment by Githook User [ 21/Jul/15 ]

Author:

{u'username': u'schmalliso', u'name': u'Allison Moore', u'email': u'allison.moore@10gen.com'}

Message: DOCS-5120: updates --password for new prompting behaviour

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/a12beccd246508399b696ada2e421bcf9f7275f7

Comment by Githook User [ 07/Apr/15 ]

Author:

{u'username': u'schmalliso', u'name': u'Allison Moore', u'email': u'allison.moore@10gen.com'}

Message: DOCS-5120: updates --password behavior to reflect new reality

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/c23a78e7f1e24e3a4e352755d3b825ebbd860d29

Generated at Thu Feb 08 07:49:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.