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.
When an Identity Management server installed on Red Hat Enterprise Linux 6.2 is updated to the version provided by Red Hat Enterprise Linux 6.4 or 6.5, the new pbac permission "Write DNS Configuration" is created without any of the required object classes. Consequently, the permission may not show up on the Identity Management Web UI permission page or when the --sizelimit parameter is used for the CLI permission-find command. The permission is still accessible using the command line when the --sizelimit option is not specified. To work around this problem, run the following command on the server to trigger the DNS permission update process again and fix the list of permission object classes:
]# ipa-ldap-updater --ldapi /usr/share/ipa/updates/40-dns.update
This problem can also be avoided when a Red Hat Enterprise Linux 6.4 or 6.5 replica is installed or when an Identity Management server is reinstalled or upgraded.
Description of problem:
Update from 6.2 to 6.5
ipa permission-find --all dns
lists 5 permissions -
add dns entries
read dns entries
remove dns entries
update dns entries
write dns configuration
But in UI, a search for 'dns' in rbac permissions page lists only:
read dns entries
read dns entries
remove dns entries
update dns entries
But go to Privileges -click DNS Administrators (or DNS Servers)
it lists out all 5 permissions including write dns configuration .
The only issue is this permission exists but not showing in the search result after an upgrade from 6.2 to 6.5
Version-Release number of selected component (if applicable):
ipa-server-2.1.3-9.el6.x86_64 to ipa-server-3.0.0-35.el6.x86_64
How reproducible:
Always
Steps to Reproduce:
see above
Actual results:
'Write DNS Configuration' permission does not show up in search results
Expected results:
'Write DNS Configuration' permission show ups in search results
Additional info:
So you are saying that after 6.2 to 6.5 upgrade, "permission-find dns" command run in CLI returns "write dns configuration", but when you do "dns" permission search in UI, then it does not work?
If this is the case, it seems to me as some caching problem in UI. Adding Petr to advise.
Yi, did you by any chance opened the UI in 6.2, upgrade and then tried the search in the same browser? Would cleaning the cache of the browser and loading a fresh UI help?
I checked the UI on that machine and results are:
* it's not Web UI issue - it doesn't get the data from IPA server
* there is definitely something wrong with combination of --sizelimit=0 option and 'Write DNS Configuration' permission, see commands below:
I also tried fresh installation(no update) of ipa-server-3.0.0-36.el6.x86_64 on RHEL 6.5 and there the command behaves correctly, so it's really an update issue.
[root@ms62 ~]# ipa permission-find dns --pkey-only --sizelimit=0
---------------------
4 permissions matched
---------------------
Permission name: add dns entries
Permission name: Read DNS Entries
Permission name: remove dns entries
Permission name: update dns entries
----------------------------
Number of entries returned 4
----------------------------
[root@ms62 ~]# ipa permission-find dns --pkey-only
---------------------
5 permissions matched
---------------------
Permission name: add dns entries
Permission name: Read DNS Entries
Permission name: remove dns entries
Permission name: update dns entries
Permission name: Write DNS Configuration
----------------------------
Number of entries returned 5
----------------------------
[root@ms62 ~]# ipa permission-find hbac --pkey-only
---------------------
9 permissions matched
---------------------
Permission name: Add HBAC rule
Permission name: Add HBAC service groups
Permission name: Add HBAC services
Permission name: Delete HBAC rule
Permission name: Delete HBAC service groups
Permission name: Delete HBAC services
Permission name: Manage HBAC rule membership
Permission name: Manage HBAC service group membership
Permission name: Modify HBAC rule
----------------------------
Number of entries returned 9
----------------------------
[root@ms62 ~]# ipa permission-find hbac --pkey-only --sizelimit=0
---------------------
9 permissions matched
---------------------
Permission name: Add HBAC rule
Permission name: Add HBAC service groups
Permission name: Add HBAC services
Permission name: Delete HBAC rule
Permission name: Delete HBAC service groups
Permission name: Delete HBAC services
Permission name: Manage HBAC rule membership
Permission name: Manage HBAC service group membership
Permission name: Modify HBAC rule
----------------------------
Number of entries returned 9
----------------------------
I investigated the machine as well, there is a small glitch in upgrade procedure, when the "Write DNS Configuration" permission object does not get "ipapermission" objectclass as other permission objects. This cause
# Write DNS Configuration, permissions, pbac, testrelm.com
dn: cn=Write DNS Configuration,cn=permissions,cn=pbac,dc=testrelm,dc=com
objectClass: groupofnames
objectClass: top
member: cn=DNS Administrators,cn=privileges,cn=pbac,dc=testrelm,dc=com
member: cn=DNS Servers,cn=privileges,cn=pbac,dc=testrelm,dc=com
cn: Write DNS Configuration
description: Write DNS Configuration
It can be workarounded either by doing any other package update, or just by running:
# ipa-ldap-updater --ldapi /usr/share/ipa/updates/40-dns.update