Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionKaushik Banerjee
2020-01-16 06:42:59 UTC
Description of problem:
Manpage and help does not explain the use of "-C" option
Version-Release number of selected component (if applicable):
adcli-0.8.2-4.el8.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Check the existing help text
-C, --login-ccache=<...> kerberos credential cache file which contains
ticket to used to connect to the domain
2. Check the existing manpage text
-C, --login-ccache=ccache_name
Use the specified kerberos credential cache to authenticate with the domain. If no credential cache is specified, the default kerberos credential cache will be used. Credential caches of type FILE can be given with the path to the file. For other credential cache types, e.g. DIR, KEYRING or KCM, the type must be specified explicitly together with a suitable identifier.
3. On testing the "-C" option, I found that it uses the computer account. e.g.
# adcli show-computer -C 'CI-VM-10-0-155-' -D 'td5e5666.com'
<Gives appropriate output>
# adcli show-computer -C 'NON-CI-VM-10-0-155-' -D 'td5e5666.com'
adcli: couldn't read data for NON-CI-VM-10-0-155-: No computer account for NON-CI-VM-10-0-155-$ exists
# adcli show-computer --login-ccache='CI-VM-10-0-155-' -D 'td5e5666.com'
adcli: couldn't connect to td5e5666.com domain: Couldn't authenticate to active directory: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found)
# adcli show-computer --login-ccache='/tmp/krb5cc_0' -D 'td5e5666.com'
<Gives correct output>
Actual results:
-C needs input of computer account which is not mentioned in help or manpage
Expected results:
Functionality of -C should be mentioned correctly in manpage or help
Additional info:
Tested against
adcli-0.8.2-7.el8.x86_64
]$ man agcli
-C
Use the default Kerberos credential cache to authenticate with the domain.
--login-ccache[=ccache_name]
Use the specified Kerberos credential cache to authenticate with the domain. If no credential cache is specified, the default Kerberos credential cache will be used. Credential caches of type
FILE can be given with the path to the file. For other credential cache types, e.g. DIR, KEYRING or KCM, the type must be specified explicitly together with a suitable identifier.
Please note that since the ccache_name is optional the =(equal) sign is mandatory. If = is missing the parameter is treated as optionless extra argument. How this is handled depends on the
specific sub-command.
Looks good. An example of --login-ccache usecase would have been more helpful, however current information is clear enough.
Marking verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (adcli bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:4578
Description of problem: Manpage and help does not explain the use of "-C" option Version-Release number of selected component (if applicable): adcli-0.8.2-4.el8.x86_64 How reproducible: Always Steps to Reproduce: 1. Check the existing help text -C, --login-ccache=<...> kerberos credential cache file which contains ticket to used to connect to the domain 2. Check the existing manpage text -C, --login-ccache=ccache_name Use the specified kerberos credential cache to authenticate with the domain. If no credential cache is specified, the default kerberos credential cache will be used. Credential caches of type FILE can be given with the path to the file. For other credential cache types, e.g. DIR, KEYRING or KCM, the type must be specified explicitly together with a suitable identifier. 3. On testing the "-C" option, I found that it uses the computer account. e.g. # adcli show-computer -C 'CI-VM-10-0-155-' -D 'td5e5666.com' <Gives appropriate output> # adcli show-computer -C 'NON-CI-VM-10-0-155-' -D 'td5e5666.com' adcli: couldn't read data for NON-CI-VM-10-0-155-: No computer account for NON-CI-VM-10-0-155-$ exists # adcli show-computer --login-ccache='CI-VM-10-0-155-' -D 'td5e5666.com' adcli: couldn't connect to td5e5666.com domain: Couldn't authenticate to active directory: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found) # adcli show-computer --login-ccache='/tmp/krb5cc_0' -D 'td5e5666.com' <Gives correct output> Actual results: -C needs input of computer account which is not mentioned in help or manpage Expected results: Functionality of -C should be mentioned correctly in manpage or help Additional info: