Bug 1438360

Summary: The originalMemberOf attribute disappears from the cache, causing intermittent HBAC issues
Product: Red Hat Enterprise Linux 6 Reporter: Thorsten Scherf <tscherf>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 6.8CC: amore, fidencio, grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, sbose, sgoveas, sssd-qe, toneata, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.13.3-57.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1473005 (view as bug list) Environment:
Last Closed: 2018-06-19 05:13:47 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:
Bug Depends On:    
Bug Blocks: 1473005    
Attachments:
Description Flags
Console log none

Description Thorsten Scherf 2017-04-03 08:22:30 UTC
Description of problem:

The issue is that a hbac rule denies access to a system. This is because the user object in the sssd cache is missing the "originalMemberOf" attr which used by the hbac rule to decide if access is allowed or denied. The attribute must have been removed from the cache by some operation. It's unclear though which operation triggered the removal.


Version-Release number of selected component (if applicable):
sssd-1.13.3-22.el6_8.4.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 Jakub Hrozek 2017-06-21 18:15:24 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3382

Comment 7 Jakub Hrozek 2017-06-21 19:08:28 UTC
master:
    c92e49144978ad3b6c9fffa8803ebdad8f6f5b18
sssd-1-14:
    e1dafa7acf28e3e34b15def05ab5f065fdee10e8
sssd-1-13 version is being reviewed, but since the bug is fixed upstream, I'm moving the bug to POST.

Comment 14 Fabiano FidĂȘncio 2018-02-26 22:19:41 UTC
sssd-1-13:
*88f6d8a

And this bug has been added to the build a long time ago.

Comment 16 anuja 2018-03-22 10:45:38 UTC
Verified Using:
ipa-client-3.0.0-51.el6.x86_64
sssd-1.13.3-58.el6_9.x86_64

Setup:
Master : RHEL 7.5
AD     : Windows 2016
client : RHEL 6.9

Step 1:
---------------------
IPA server installed on RHEL-7.5 and trust established using windows 2016
IPA client is installed on RHEL-6.9

Step 2 :   On client 
---------------------
# id aduser1

Step 3 :  On IPA server
---------------------
# ipa group-add --desc=0 hbacgroup_external --external
# ipa group-add-member hbacgroup_external --external='adgroup1' --users='' --groups=''
# ipa group-add --desc=0 hbacgroup
# ipa group-add-member hbacgroup --groups=hbacgroup_external
# ipa hbacrule-add hbacrule --hostcat=all --servicecat=all
# ipa hbacrule-add-user hbacrule --groups='hbacgroup'
# ipa hbacrule-disable allow_all
# ipa hbacrule-find --all hbacrule

Step 5 :  On Client 
-------------------
# ldbsearch -H /var/lib/sss/db/cache_IPA-master.ldb
# ldbsearch -H /var/lib/sss/db/cache_tomupn14.test.ldb  | grep 'originalMemberOf: cn=hbacgroup'
# id aduser1 | grep hbacgroup


Console logs are added in attachment.

Comment 17 anuja 2018-03-22 10:47:39 UTC
Created attachment 1411684 [details]
Console log

Console logs for verification steps.

Comment 20 errata-xmlrpc 2018-06-19 05:13:47 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, 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-2018:1877