Login prompts "Enter LDAP Username:" and "Enter Password:" should be written to stderr so they don't interfere with stdout redirection or formatting.
Actual behavior
Login prompts are written to stdout.
If redirecting the output to save credentials (or prevent credentials from being logged) the user can't see the prompts.
If using --json to allow programmatic consumption of the credentials the json file will be invalid.
Steps to reproduce the behavior
1) configure minio with LDAP authentication and provion bind credentials for the minio system user
Expected behavior
Login prompts "Enter LDAP Username:" and "Enter Password:" should be written to stderr so they don't interfere with stdout redirection or formatting.
Actual behavior
Login prompts are written to stdout. If redirecting the output to save credentials (or prevent credentials from being logged) the user can't see the prompts. If using --json to allow programmatic consumption of the credentials the json file will be invalid.
Steps to reproduce the behavior
1) configure minio with LDAP authentication and provion bind credentials for the minio system user
2)
mc --json idp ldap accesskey create --login https://minio.${domain}:9000 > creds.json
3) enter username and password without visible prompts 4)cat creds.json
showsmc --version
mc --version
)System information
Ubuntu 22.04.4 LTS