Docs Menu
Docs Home
/
MongoDB Compass
/

Display the Kerberos Password Field

On this page

  • About This Task
  • Procedure
  • Compass Settings Panel
  • Command Line
  • Configuration File
  • Learn More

If you use Kerberos authentication to connect to your MongoDB deployment, you can enable the showKerberosPasswordField option on MongoDB Compass.

The password field is not necessary for Kerberos authentication, so Compass disables the showKerberosPasswordField option by default.

If you enable the showKerberosPasswordField, MongoDB Compass displays the Provide password directly option, which contains the Password field. You can find the Kerberos Password under the Advanced Connection Options > Authentication tab on the Compass connection form.

You can enable the showKerberosPasswordField option in either:

  • The Compass Settings panel.

  • The command line.

  • A configuration file.

1
Settings panel location under the MongoDB Compass system menu

Alternatively, you can use keyboard shortcuts to open the Settings panel:

  • Windows or Linux: Ctrl + ,

  • MacOS: + ,

2

Compass opens a dialog box where you can configure your MongoDB Compass settings.

3
4

The following command starts Compass from the command line and sets the --showKerberosPasswordField option:

<path-to-Compass-executable> --readOnly

Note

The name and filepath of the Compass executable depend on your operating system.

You can specify the Compass configuration file in either EJSON or YAML format. The following configurations set the showKerberosPasswordField option to true:

{ "showKerberosPasswordField": true }
showKerberosPasswordField: true

To learn more about the MongoDB Compass configuration file, see Configuration File Settings.

Back

Block Outgoing Connections