freeipa/ipaclient/plugins
Florence Blanc-Renaud d5c41ed4ad vault: piped input for ipa vault-add fails
An exception is raised when using echo "Secret123\n" | ipa vault-add myvault

This happens because the code is using (string).decode(sys.stdin.encoding)
and sys.stdin.encoding is None when the input is read from a pipe.
The fix is using the prompt_password method defined by Backend.textui,
which gracefully handles this issue.

https://pagure.io/freeipa/issue/6907

Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Abhijeet Kasurde <akasurde@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
2017-04-28 13:19:51 +02:00
..
__init__.py ipaclient: introduce ipaclient.plugins 2016-06-03 09:00:34 +02:00
automember.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
automount.py ipaclient.plugins: Use api_version from internally called commands 2016-12-14 11:50:35 +01:00
ca.py Add options to write lightweight CA cert or chain to file 2016-12-12 13:03:15 +01:00
cert.py csrgen: Modify cert_get_requestdata to return a CertificationRequestInfo 2017-04-03 07:46:30 +00:00
certmap.py certmap: load certificate from file in certmap-match CLI 2017-03-13 08:03:53 +00:00
certprofile.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
csrgen.py csrgen: Modify cert_get_requestdata to return a CertificationRequestInfo 2017-04-03 07:46:30 +00:00
dns.py dns: fix dnsrecord_add interactive mode 2017-03-08 15:52:41 +01:00
hbacrule.py ipalib: split off client-side plugin code into ipaclient 2016-06-03 09:00:34 +02:00
hbactest.py Fix ipa hbactest output 2016-08-04 17:13:16 +02:00
host.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
idrange.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
internal.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
location.py Remove unused variables in the code 2016-09-27 13:35:58 +02:00
migration.py migrate-ds: Mention --enable-migration in error message about migration mode 2016-08-22 17:59:38 +02:00
misc.py Make env and plugins commands local again 2016-12-02 13:00:06 +01:00
otptoken_yubikey.py ipaclient.plugins: Use api_version from internally called commands 2016-12-14 11:50:35 +01:00
otptoken.py Remove NSSConnection from otptoken plugin 2017-03-01 09:43:41 +00:00
passwd.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
permission.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
rpcclient.py ipalib: move client-side plugins to ipaclient 2016-06-03 09:00:34 +02:00
server.py Handled empty hostname in server-del command 2016-08-24 15:50:25 +02:00
service.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
sudorule.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
topology.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
trust.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
user.py client: ignore override errors in command overrides 2016-06-30 16:32:20 +02:00
vault.py vault: piped input for ipa vault-add fails 2017-04-28 13:19:51 +02:00