Uploaded image for project: 'MongoDB CLI Tools'
  1. MongoDB CLI Tools
  2. TOOLS-636

mongodump should prompt for username when --authenticationMechanism=GSSAPI and --username is not provided

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodump
    • Environment:
      linux

      Description

      I want to treat my kerberos username as if it were a password, and not have it display on a "ps -ef" output, so i want mongodump to prompt me for the username when i fail to provide it on the command line. This would be the same as mongodump does for MONGODB-CR when given the username without a password.Here is what it would look like in my script:

      mongodump --host hostname --port port# --authenticationMechanism=GSSAPI --authenticationDatabase='$external' --username --out backupdir <<EOF
      provide-my-kerberos-id-here
      EOF

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              thomas.s.clarke@wellsfargo.com Tom Clarke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: