Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-57659

mongoldap should not log in color to non-tty by default

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2021-06-28

    Description

      Mongoldap defaults to outputing in color. It should be changed to not log in color when outputing to a non-tty.

      By default LDAPToolOptions.color defaults to true on Linux. The color set LDAPToolOptions.color to false if the user did not specify color on the command line.

      See https://man7.org/linux/man-pages/man3/isatty.3.html for detecting if stdout is a tty.

       

      Attachments

        Activity

          People

            aldo.aguilar@mongodb.com Aldo Aguilar
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: