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 1473005 - The originalMemberOf attribute disappears from the cache, causing intermittent HBAC issues
Summary: The originalMemberOf attribute disappears from the cache, causing intermitten...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.8
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: Varun Mylaraiah
URL:
Whiteboard:
Depends On: 1438360
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-19 20:10 UTC by Oneata Mircea Teodor
Modified: 2020-12-14 09:10 UTC (History)
15 users (show)

Fixed In Version: sssd-1.13.3-57.el6_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1438360
Environment:
Last Closed: 2017-08-22 17:30:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4410 0 None None None 2020-05-04 11:02:25 UTC
Red Hat Product Errata RHBA-2017:2505 0 normal SHIPPED_LIVE sssd bug fix update 2017-08-22 21:27:58 UTC

Description Oneata Mircea Teodor 2017-07-19 20:10:51 UTC
This bug has been copied from bug #1438360 and has been proposed to be backported to 6.9 z-stream (EUS).

Comment 7 Varun Mylaraiah 2017-08-09 10:36:23 UTC
Verified
sssd-1.13.3-57.el6_9.x86_64
ipa-client-3.0.0-51.el6.x86_64

Now the group is listed in the "originalMemberOf" attr

# id aduser1
uid=346211915(aduser1) gid=346211915(aduser1) groups=346211915(aduser1),346201110(adunigroup1),346201108(adgroup1),346201109(adgroup2),729800010(hbacgroup),346200513(domain users)

#  ldbsearch -H /var/lib/sss/db/cache_ssh080817.test.ldb 
asq: Unable to register control with rootdse!
# record 1
dn: name=aduser1,cn=users,cn=ipaad2012r2.test,cn=sysdb
createTimestamp: 1502268960
fullName: aduser1 ads
gecos: aduser1 ads
gidNumber: 346211915
homeDirectory: /home/ipaad2012r2.test/aduser1
name: aduser1
objectClass: user
uidNumber: 346211915
objectSIDString: S-1-5-21-547465014-1205121312-3291251547-11915
userPrincipalName: aduser1
adUserAccountControl: 512
originalDN: CN=aduser1 ads,CN=Users,DC=ipaad2012r2,DC=test
nameAlias: aduser1
adAccountExpires: 9223372036854775807
originalMemberOf: CN=adunigroup1,CN=Users,DC=ipaad2012r2,DC=test
originalMemberOf: CN=adgroup2,CN=Users,DC=ipaad2012r2,DC=test
originalMemberOf: CN=adgroup1,CN=Users,DC=ipaad2012r2,DC=test
originalMemberOf: cn=hbacgroup,cn=groups,cn=accounts,dc=ssh080817,dc=test
memberof: name=adunigroup1,cn=groups,cn=ipaad2012r2.test,cn=s
 ysdb
memberof: name=adgroup1,cn=groups,cn=ipaad2012r2.test,cn=sysd
 b
memberof: name=adgroup2,cn=groups,cn=ipaad2012r2.test,cn=sysd
 b
memberof: name=hbacgroup,cn=groups,cn=ssh080817.test,cn=sysdb
memberof: name=domain users,cn=groups,cn=ipaad2012r2.test,cn=
 sysdb
initgrExpireTimestamp: 1502274375
lastUpdate: 1502268975
dataExpireTimestamp: 1502274375
distinguishedName: name=aduser1,cn=users,cn=ipaad2012r2.test,
 cn=sysdb


Additional info:
On Server side

Created an external IPA group

# ipa group-add --desc=0 hbacgroup_external --external
--------------------------------
Added group "hbacgroup_external"
--------------------------------
  Group name: hbacgroup_external
  Description: 0

Added an AD group into IPA group

#ipa group-add-member hbacgroup_external --external='adgroup1' --users='' --groups=''
  Group name: hbacgroup_external
  Description: 0
  External member: S-1-5-21-547465014-1205121312-3291251547-11915, S-1-5-21-547465014-1205121312-3291251547-1108
  Member of groups: hbacgroup
-------------------------
Number of members added 1
-------------------------

Then add the external IPA group into an IPA POSIX group

# ipa group-add --desc=0 hbacgroup
-----------------------
Added group "hbacgroup"
-----------------------
  Group name: hbacgroup
  Description: 0
  GID: 729800010

# ipa group-add-member hbacgroup --groups=hbacgroup_external
  Group name: hbacgroup
  Description: 0
  GID: 729800010
  Member groups: hbacgroup_external
-------------------------
Number of members added 1
-------------------------

Referencing the IPA POSIX group in an HBAC rule

# ipa hbacrule-add hbacrule --hostcat=all --servicecat=all
--------------------------
Added HBAC rule "hbacrule"
--------------------------
  Rule name: hbacrule
  Host category: all
  Service category: all
  Enabled: TRUE

# ipa hbacrule-add-user hbacrule --groups='hbacgroup'
  Rule name: hbacrule
  Host category: all
  Service category: all
  Enabled: TRUE
  User Groups: hbacgroup
-------------------------
Number of members added 1
-------------------------
Then disable allow_all.

# ipa hbacrule-disable allow_all
------------------------------
Disabled HBAC rule "allow_all"
------------------------------

# ipa hbacrule-find --all hbacrule
-------------------
1 HBAC rule matched
-------------------
  dn: ipaUniqueID=48e182bc-7ce0-11e7-836e-5254001e863c,cn=hbac,dc=ssh080817,dc=test
  Rule name: hbacrule
  Host category: all
  Service category: all
  Enabled: TRUE
  User Groups: hbacgroup
  accessruletype: allow
  ipauniqueid: 48e182bc-7ce0-11e7-836e-5254001e863c
  objectclass: ipaassociation, ipahbacrule
----------------------------
Number of entries returned 1
----------------------------

Comment 8 Varun Mylaraiah 2017-08-09 10:39:34 UTC
ipa server version used
ipa-server-4.5.0-21.el7_4.1.x86_64

Comment 10 errata-xmlrpc 2017-08-22 17:30:09 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/RHBA-2017:2505


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