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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2021-06-28

      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.

       

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

              Created:
              Updated:
              Resolved: