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:
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.