On Thursday, 8 August 2019 12:00:34 PDT Franklin, Jason wrote:
> However, after trying several invocations, I can't get the tool to behave as
> expected (i.e., take a password on stdin and exit with 0/1 on success/
> failure).

That's because the tool does not take the password on stdin.

$ /usr/lib64/libexec/kcheckpass   
Only binary protocol supported

You need to pass a file descriptor number with the -S option.

kcheckpass.c also makes debugging difficult, by setting a bunch of options to 
prevent unauthorised attaching to the process. You need to modify the source 
to turn those off.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products



Reply via email to