URL:
https://github.com/SSSD/sssd/pull/5682
Title: #5682: bugfix for newline char in sss_obfuscate
pbrezina commented:
"""
Hi @rajsshah86 I'm sorry it took so long. I don't think this is an error in the
script, but rather an error in usage. `sss_obfuscate -s` means to read whatever comes to
`stdin` and use it as a password. Your file contains trailing new line, therefore it is
included in the password. I don't think it is the script's duty (especially since
it is not documented) to remove the new line character -- it may be as well part of the
password.
You either need to remove the new line from the file or call the script like `head -c -1
file | sss_obfuscate -d domain -s` to remove it before sending it to the script's
input.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5682#issuecomment-878989102