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 1372752

Summary: ipa idoverrideuser-mod self service fails for non-default view
Product: Red Hat Enterprise Linux 7 Reporter: Scott Poore <spoore>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED NOTABUG QA Contact: Kaleem <ksiddiqu>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.3CC: abokovoy, pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-05 13:40:37 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
dirsrv access log
none
dirsrv errors log none

Description Scott Poore 2016-09-02 14:45:56 UTC
Description of problem:

I'm trying to change attributes for a user in an ID View using ID Overrides and I'm seeing Insufficient access errors:


[root@master ~]# ipa idoverrideuser-mod testview adoruser1 --desc="1234"
ipa: ERROR: Insufficient access: Insufficient 'write' privilege to the 'description' attribute of entry 'ipaanchoruuid=:sid:s-1-5-21-2178499580-3696211733-3412024300-1104,cn=testview,cn=views,cn=accounts,dc=ipa,dc=test'.


Version-Release number of selected component (if applicable):
ipa-server-4.4.0-9.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1.  Setup IPA Master with Trust to AD Domain with user added
2.  Create ID View and Override for AD User on Host

ipa idview-add testview
ipa idview-apply testview --hosts=master.ipa.test
ipa idoverrideuser-add testview adoruser1

3.  As AD User change description

kdestroy -A
kinit adoruser1
ipa idoverrideuser-mod testview adoruser1 --desc="1234"


Actual results:
error shown above

Expected results:
should change users description

Additional info:

If I try as user to change attribute for 'default trust view' that works.

/var/log/httpd/error_log entry:

[Fri Sep 02 09:36:30.821075 2016] [:error] [pid 4786] ipa: INFO: [jsonserver_kerb] adoruser1: idoverrideuser_mod/1(u'testview', u'adoruser1', description=u'1234', version=u'2.212'): ACIError


I'll attach DS logs shortly

Comment 1 Scott Poore 2016-09-02 14:48:03 UTC
Created attachment 1197228 [details]
dirsrv access log

Comment 2 Scott Poore 2016-09-02 14:48:25 UTC
Created attachment 1197229 [details]
dirsrv errors log

Comment 4 Alexander Bokovoy 2016-09-05 13:40:37 UTC
This is not a bug, this is a wrong test case. AD users can only be defined in the 'Default Trust View' for self-service.