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.

Bug 2063155

Summary: WebUI: do not allow subid range deletion
Product: Red Hat Enterprise Linux 8 Reporter: Sudhir Menon <sumenon>
Component: ipaAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: abiagion, cheimes, frenaud, mpolovka, rcritten, rjeffman, ssidhaye, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.10-1.module+el8.7.0+15691+2b2c1dd5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:35:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Pre-verification screenshot none

Description Sudhir Menon 2022-03-11 11:48:38 UTC
Description of problem: Include support to delete subids for users from command line.

Version-Release number of selected component (if applicable):
ipa-server-4.9.8-7.module+el8.6.0+14337+19b76db2.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Login into WebUI as admin
2. Navigate to SubordinateID's Tab
3. Select any UniqueId and click on Delete 

Actual results:
The UniqueId/subid associated with the user can be deleted from UI and change gets reflected in ipa subid-find as well with the entry missing.
However if we need to do the same with CLI there isn't any option

Expected results:
Include an option for CLI to do the same action.

Additional info:
Logging this as bug to check if this can be implemented e.g 'ipa subid-del'.
Attaching the UI screenshot for reference.

Comment 4 Florence Blanc-Renaud 2022-03-31 09:13:58 UTC
Instead of allowing to delete subid ranges from the command-line, it is better to remove the delete button from the Web UI. Deletion of a subid range is a sensitive operation that should not be performed unless the user is absolutely aware of the risks.
Deletion would still be possible through direct ldap modification.

Therefore I'm changing the description of this BZ into "WebUI: do not allow subid range deletion".

Comment 5 Alexander Bokovoy 2022-05-03 19:03:47 UTC
Upstream PR:
https://github.com/freeipa/freeipa/pull/6246

Upstream issue: https://pagure.io/freeipa/issue/9150

Comment 6 Alexander Bokovoy 2022-05-05 07:10:18 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/46dc1c76ef9996341b89167c6a0c1f63e44f4381

Comment 7 Alexander Bokovoy 2022-05-05 12:03:40 UTC
Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/59cf9017a009bb5eb4f6ef0ed07aa21e60614ab3

Comment 8 Michal Polovka 2022-06-30 15:15:32 UTC
Pre-verified manually using ipa-server-4.9.10-1.module+el8.7.0+15691+2b2c1dd5.x86_64

Steps:
1. Login into WebUI
2. generate users
3. generate subids for the users
4. try to delete subids

Actual result: Deletion is not possible, Delete button is missing (see the attached screenshot).
Therefore marking as pre-verified - tested. Automation pending.

Comment 9 Michal Polovka 2022-06-30 15:16:09 UTC
Created attachment 1893682 [details]
Pre-verification screenshot

Comment 13 Michal Polovka 2022-08-05 10:03:50 UTC
Since the automation is not yet present in the python3-ipatest package, verified manually with ipa-server-4.9.10-4.module+el8.7.0+15926+daa9f08b.x86_64

Steps:
1. Login into WebUI
2. generate users
3. generate subids for the users
4. try to delete subids

Actual result: Deletion is not possible, Delete button is missing (see the attached screenshot).
Therefore marking as pre-verified - tested. Automation exists.

Comment 15 Florence Blanc-Renaud 2022-10-20 06:23:30 UTC
Test added upstream in ipatests/test_webui/test_subid.py::test_subid::test_subid_range_deletion_not_allowed

master:
    bf4c512 ipatests: WebUI: do not allow subid range deletion
    06780f4 webui tests: fix test_subid suite

ipa-4-9:
    58b0267 ipatests: WebUI: do not allow subid range deletion
    58e12bd webui tests: fix test_subid suite

ipa-4-10:
    38e5bcf ipatests: WebUI: do not allow subid range deletion

Comment 17 errata-xmlrpc 2022-11-08 09:35:50 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 (idm:client and idm:DL1 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-2022:7540