-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Shell
-
Fully Compatible
-
Security 2019-11-04, Security 2019-11-18
Proposed syntax:
> db.auth('username')
Enter password:
Uses askPassword()
Suggested by Dan C
- duplicates
-
SERVER-3472 Add auth function that prompts for password to mongo shell
- Closed
- is duplicated by
-
SERVER-41724 allow db.auth command to prompt for password
- Closed
- is related to
-
SERVER-44008 Create User commands are not added to mongo shell history
- Closed
-
SERVER-36802 Don't omit db.auth() et al from shell history if they don't contain string literal password
- Closed
- related to
-
SERVER-24391 Prompt for password on user creation or password change via the shell
- Closed