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.
Bug 1791545 - Manpage and help does not explain the use of "-C" option
Summary: Manpage and help does not explain the use of "-C" option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: adcli
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Sumit Bose
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-16 06:42 UTC by Kaushik Banerjee
Modified: 2020-11-04 02:11 UTC (History)
4 users (show)

Fixed In Version: adcli-0.8.2-7.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:07:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4578 0 None None None 2020-11-04 02:08:00 UTC

Description Kaushik 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:

Comment 1 Sumit Bose 2020-06-15 14:05:00 UTC
Upstream:
 - 93a39bd12db11dd407676f428cfbc30406a88c36

Comment 10 shridhar 2020-08-26 12:56:23 UTC
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.

Comment 13 errata-xmlrpc 2020-11-04 02:07:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.