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

XMLWordPrintableJSON

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

      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
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: