#2840 pki cli command for Dogtag doesn't prompt for a password
Closed: fixed Opened by mharmsen.

pki cli command for Dogtag doesn't prompt for a password

Steps to Reproduce:

# /bin/pki  -u <username> -U 'https://pki.example.com:8443/ca' user-find
Error: Missing user password.
# /bin/pki -U 'https://pki.example.com:8443/ca' -u <username> user-find
Error: Missing user password.

The man page and docs say this is supposed to prompt for a password

<snip>
Finally, if a username has been specified on the command-line,
and neither the '-W <client-side password file>' nor the '-w <password>'
options have been utilized, the password will be prompted for.
To authenticate with a username by interactively prompting for a password:
    pki -u <username> <command>
Note: Prompting for a user password is not suitable for automated batch processing.
</snip>

Metadata Update from @mharmsen:
- Custom field component adjusted to None
- Custom field feature adjusted to None
- Custom field origin adjusted to None
- Custom field proposedmilestone adjusted to None
- Custom field proposedpriority adjusted to None
- Custom field reviewer adjusted to None
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1479559
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue set to the milestone: FUTURE

@mharmsen Which version are you using? I haven't seen this issue when using pki-tools-10.4.1-17.el7_4.x86_64

Per 10.5.x/10.6 Triage: FUTURE

edewata: already triaged. usability issue, but there's a workaround.

Metadata Update from @mharmsen:
- Issue set to the milestone: 10.6 (was: FUTURE)

Metadata Update from @mharmsen:
- Issue assigned to edewata
- Issue priority set to: critical
- Issue set to the milestone: 10.5 (was: 10.6)

The problem only happens in PKI 10.5 and 10.6.

Fixed in master branch:
* https://github.com/dogtagpki/pki/commit/22e405c2634452f25a71e6caf3a7fd1d895a1a2b

Fixed in 10.5 branch:
* https://github.com/dogtagpki/pki/commit/b1bda0a1e7baca575561c08e78d93ae7c7160738

Metadata Update from @edewata:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @edewata:
- Issue set to the milestone: 10.5.13 (was: 10.5)

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2960

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata