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.
DescriptionVarun Mylaraiah
2021-09-14 04:03:40 UTC
Description of problem:
ipa default admin can be deleted from another admin user without additional confirmation or warning message.
Version-Release number of selected component (if applicable):
ipa-server-4.9.6-4.module+el8.5.0+11912+1b4496cf.x86_64
How reproducible:
100%
Steps to Reproduce:
[root@master ~]# ipa user-add testuser_admin
First name: tadmin
Last name: tadmin
---------------------------
Added user "testuser_admin"
---------------------------
User login: testuser_admin
First name: tadmin
Last name: tadmin
Full name: tadmin tadmin
Display name: tadmin tadmin
Initials: tt
Home directory: /home/testuser_admin
GECOS: tadmin tadmin
Login shell: /bin/sh
Principal name: testuser_admin
Principal alias: testuser_admin
Email address: testuser_admin
UID: 611400001
GID: 611400001
Password: False
Member of groups: ipausers
Kerberos keys available: False
[root@master ~]# ipa passwd testuser_admin
New Password:
Enter New Password again to verify:
----------------------------------------------------
Changed password for "testuser_admin"
----------------------------------------------------
[root@master ~]# ipa group-add-member
Group name: admins
[member user]: testuser_admin
[member group]:
[member service]:
[member User ID override]:
Group name: admins
Description: Account administrators group
GID: 611400000
Member users: admin, testuser_admin
-------------------------
Number of members added 1
-------------------------
==========================================
# kinit testuser_admin
Password for testuser_admin:
Password expired. You must change it now.
Enter new password:
Enter it again:
[root@master ~]# ipa user-find
---------------
2 users matched
---------------
User login: admin
Last name: Administrator
Home directory: /home/admin
Login shell: /bin/bash
Principal alias: admin, root
UID: 611400000
GID: 611400000
Account disabled: False
User login: testuser_admin
First name: tadmin
Last name: tadmin
Home directory: /home/testuser_admin
Login shell: /bin/sh
Principal name: testuser_admin
Principal alias: testuser_admin
Email address: testuser_admin
UID: 611400001
GID: 611400001
Account disabled: False
----------------------------
Number of entries returned 2
----------------------------
[root@master ~]# ipa user-del admin
--------------------
Deleted user "admin"
--------------------
[root@master ~]# ipa user-show admin
ipa: ERROR: admin: user not found
Actual results:
Default admin deleted without any warning.
Expected results:
At least provide a warning message or additional confirmation before deleting.
Comment 1Alexander Bokovoy
2021-09-14 06:11:51 UTC
This is not an access control bug. Any admin is an admin in IPA, they aren't different in terms of what they can do if they granted the same level access rights. We do not support environments where 'admin' user or 'admins' group are deleted but we do not prevent such operations because it is not possible to prevent any deletion for all access paths, e.g. cn=Directory Manager account by definition has access with no ACIs applied to itself and can delete any entry in the LDAP database.
We have few protected group names but we do not apply this logic to users.
Many customers rename 'admin' user to a different name while keeping the account in place. Since that's possible, people can rename it and then remove it, getting around a possible protection.
I'd rather close this bug as WONTFIX.
Comment 2Florence Blanc-Renaud
2021-09-14 08:34:38 UTC