Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1253455
Description of problem: [root@master ~]# ipa vault-add vname --public-key-file=/tmp/pwfile_dne ------------------- Added vault "vname" ------------------- Vault name: vname Type: standard Owner users: admin [root@master ~]# ipa vault-find --------------- 1 vault matched --------------- Vault name: vname Type: standard ---------------------------- Number of entries returned 1 ---------------------------- Version-Release number of selected component (if applicable): ipa-server-4.2.0-4.el7.x86_64 How reproducible: always Steps to Reproduce: 1. ipa-server-install 2. ipa-kra-install 3. kinit admin 4. ipa vault-add vname --public-key-file=/tmp/pwfile_dne Actual results: creates vault Expected results: fails and does not create vault Additional info:
The usage is bad, without type option a standard vault is created. Ticket #5195 added a validation which checks --password and --public-key options, therefore now it returns:
$ ipa vault-add vname --public-key-file=/tmp/pwfile_dne ipa: ERROR: Public key can be specified only for asymmetric vault
fixed in #5195
Metadata Update from @spoore: - Issue assigned to someone - Issue set to the milestone: 0.0 NEEDS_TRIAGE
Login to comment on this ticket.