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 1757045 - IDM Web GUI / IPA web UI: the ID override operation doesn't work in GUI (it works only from CLI)
Summary: IDM Web GUI / IPA web UI: the ID override operation doesn't work in GUI (it w...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 8.0
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-30 12:57 UTC by Francisco Peralta
Modified: 2024-03-25 15:26 UTC (History)
10 users (show)

Fixed In Version: ipa-4.8.7-8.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:50:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of GUI window with the error (6.32 KB, image/png)
2019-09-30 13:50 UTC, Francisco Peralta
no flags Details
override (54.91 KB, image/png)
2020-07-13 11:20 UTC, Sudhir Menon
no flags Details
User ID-overrides screenshot (142.79 KB, image/png)
2020-08-18 12:02 UTC, Sudhir Menon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-10648 0 None None None 2023-12-15 16:51:31 UTC

Description Francisco Peralta 2019-09-30 12:57:14 UTC
Description of problem:

From the Default Trust View as a member to an IdM group it is not possible to add an ID override from the Web GUI.
The ID Override functionality cannot add the user through the IDM GUI into the IDM groups.

Version-Release number of selected component (if applicable):

Newly configured RHEL8.0 IDM server with AD trust
ipa-*-4.7.1-11

How reproducible:

Always (newly configured RHEL8.0 IDM server with AD trust)

Steps to Reproduce:

In addition, once we set the user ID overrides through the command line 
1. go to the IDM Web GUI
2. navigate to: Identity => Groups => Selected Admins group => User ID Overrides => +Add 
3. see error message

Actual results:

We get the following error when trying to do so (see attached image):
IPA Error 3007: RequirementError 'idviewcn' is required.

Expected results:

To be able to add the user ID override, exactly as it works from CLI.

Additional info:

 Also I verified in the documentation that there is not really much detail available about GUI functionality in RHEL 8 vs 7:

 - RHEL 8: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_identity_management/enabling-ad-user-to-administer-idm_certmonger-for-issuing-renewing-service-certs#idoverrides-to-allow-ad-user-to-administer-idm-fin

 - RHEL 7: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/linux_domain_identity_authentication_and_policy_guide/user-authentication#pwd-reset-ui

We also have noticed further issues in the IDM Web GUI like we cannot perform actions as ADMIN or other users (for instance change password to a user without knowing it) but will open separate bug for it.

Comment 1 Francisco Peralta 2019-09-30 13:50:42 UTC
Created attachment 1621146 [details]
screenshot of GUI window with the error

Comment 9 Serhii Tsymbaliuk 2020-06-22 07:40:33 UTC
Fixed upstream

master: https://pagure.io/freeipa/c/c2ba333b9681d008d9c528a79dbdd76ce11a3ecd

Comment 17 Serhii Tsymbaliuk 2020-06-26 14:36:47 UTC
Kaleem, yes, we need to cover the issue.

A better place for this test case is https://pagure.io/freeipa/blob/master/f/ipatests/test_webui/test_trust.py, since it requires a trust installed.

Comment 21 Sudhir Menon 2020-07-13 11:20:08 UTC
Created attachment 1700820 [details]
override

Comment 22 Alexander Bokovoy 2020-07-28 12:49:15 UTC
Comment on attachment 1700820 [details]
override

The fix is covered by the https://github.com/freeipa/freeipa/pull/4925

Comment 23 Alexander Bokovoy 2020-07-30 11:26:01 UTC
master:

* 5d9d6348c17f683bf2bda986d2ca0d785a3def17 WebUI: Fix error "unknown command 'idoverrideuser_add_member'"
* bcae2094048609a6cfaecf73d9b611d3d90af44b WebUI tests: Add test case to cover user ID override feature

Comment 28 Sudhir Menon 2020-08-18 12:02:42 UTC
Created attachment 1711714 [details]
User ID-overrides screenshot

Screenshot for the fix seen in UI.


ipa-server-4.8.7-8.module+el8.3.0+7513+a375844a.x86_64
ipa-selinux-4.8.7-8.module+el8.3.0+7513+a375844a.noarch
ipa-server-trust-ad-4.8.7-8.module+el8.3.0+7513+a375844a.x86_64
selinux-policy-targeted-3.14.3-51.el8.noarch

[Tue Aug 18 07:38:31.209788 2020] [wsgi:error] [pid 34778:tid 140251613431552] [remote 10.74.8.180:57096] ipa: INFO: [jsonserver_session] admin: idoverrideuser_find('Default Trust View', None, version='2.239', no_members=True): SUCCESS
[Tue Aug 18 07:38:35.687088 2020] [:warn] [pid 34783:tid 140251536250624] [client 10.74.8.180:57096] failed to set perms (3140) on file (/run/ipa/ccaches/admin)!, referer: https://master.testrelm.test/ipa/ui/
[Tue Aug 18 07:38:35.757057 2020] [wsgi:error] [pid 34779:tid 140251613431552] [remote 10.74.8.180:57096] ipa: INFO: [jsonserver_session] admin: group_add_member('admins', all=True, version='2.239', idoverrideuser=('aduser1', 'aduser2')): SUCCESS

Comment 32 errata-xmlrpc 2020-11-04 02:50:15 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 (Moderate: idm:DL1 and idm:client security, 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/RHSA-2020:4670


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