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 950018 - Fix the help docstring for hbacsvcgroup
Summary: Fix the help docstring for hbacsvcgroup
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-09 13:17 UTC by Dmitri Pal
Modified: 2014-06-18 00:08 UTC (History)
3 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 13:26:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dmitri Pal 2013-04-09 13:17:07 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3548

In the ```EXAMPLES``` section of ```ipa help hbacsvcgroup```, the following example is displayed:


{{{
 Add a new group to the "login" group:
   ipa hbacsvcgroup-add --desc="switch users" login
   ipa hbacsvcgroup-add-member --hbacsvcs=su --hbacsvcs=su-l login
}}}

However, nested HBAC service groups are not supported.

The docstring should be fixed accordingly.

Comment 1 Rob Crittenden 2013-04-18 21:30:21 UTC
Fixed upstream.

master: 4f47ac9d7f3d9cb2f1381858b05a7ba851917592

Comment 4 Kaleem 2014-01-02 13:00:49 UTC
Verified.

IPA Server version:
===================
-------[RPMs & OS: [RedHat - x86_64]--------
|       ipa-admintools-3.3.3-6.el7.x86_64
|       ipa-client-3.3.3-6.el7.x86_64
|       ipa-server-3.3.3-6.el7.x86_64
|       sssd-ipa-1.11.2-15.el7.x86_64
----------------------------------------------

Snippet from automation log:
============================

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-hbacsvc-cli-028:  Fix of help docstring for hbacsvcgroup bz950018
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: help text output (Expected 0, got 0)
HBAC Service Groups

HBAC service groups can contain any number of individual services,
or "members". Every group must have a description.

EXAMPLES:

 Add a new HBAC service group:
   ipa hbacsvcgroup-add --desc="login services" login

 Add members to an HBAC service group:
   ipa hbacsvcgroup-add-member --hbacsvcs=sshd --hbacsvcs=login login

 Display information about a named group:
   ipa hbacsvcgroup-show login

 Delete an HBAC service group:
   ipa hbacsvcgroup-del login

Topic commands:
  hbacsvcgroup-add            Add a new HBAC service group.
  hbacsvcgroup-add-member     Add members to an HBAC service group.
  hbacsvcgroup-del            Delete an HBAC service group.
  hbacsvcgroup-find           Search for an HBAC service group.
  hbacsvcgroup-mod            Modify an HBAC service group.
  hbacsvcgroup-remove-member  Remove members from an HBAC service group.
  hbacsvcgroup-show           Display information about an HBAC service group.

To get command help, use:
  ipa <command> --help

:: [   PASS   ] :: Running 'cat /tmp/tmp.mVzoM7b7O8/output-28.txt' (Expected 0, got 0)
:: [   PASS   ] :: File '/tmp/tmp.mVzoM7b7O8/output-28.txt' should not contain 'Add a new group to the "login" group:' 
:: [   PASS   ] :: File '/tmp/tmp.mVzoM7b7O8/output-28.txt' should not contain 'ipa hbacsvcgroup-add --desc="switch users" login' 
:: [   PASS   ] :: File '/tmp/tmp.mVzoM7b7O8/output-28.txt' should not contain 'ipa hbacsvcgroup-add-member --hbacsvcs=su,su-l login' 
'e4d0455f-c7e3-4c69-8dee-e9928713ed13'
ipa-hbacsvc-cli-028 result: PASS
   metric: 0
   Log: /var/tmp/beakerlib-18195448/journal.txt
    Info: Searching AVC errors produced since 1388664588.05 (Thu Jan  2 07:09:48 2014)
     Searching logs...
     Info: No AVC messages found.
 Writing to /mnt/testarea/tmp.voQaFJ
:
   AvcLog: /mnt/testarea/tmp.voQaFJ

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Comment 5 Ludek Smid 2014-06-13 13:26:25 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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