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 1446178 - Group membership lookup issue
Summary: Group membership lookup issue
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.4
Hardware: x86_64
OS: Linux
medium
unspecified
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On: 1049533
Blocks: 848531
TreeView+ depends on / blocked
 
Reported: 2017-04-27 12:00 UTC by Varun Mylaraiah
Modified: 2020-05-04 11:01 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1049533
Environment:
Last Closed: 2017-04-27 15:52:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3232 0 None None None 2020-05-04 11:01:46 UTC

Comment 3 Varun Mylaraiah 2017-04-27 12:02:48 UTC
This issue appears in latest version:
ipa-server-4.5.0-8.el7.x86_64

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Group membership lookup works, bz1049533
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: Running 'kdestroy -A'
:: [   PASS   ] :: Command 'kdestroy -A' (Expected 0, got 0)
:: [ 06:58:16 ] :: Create group for testing bug
:: [  BEGIN   ] :: Running 'ipa group-add --desc=0 bz1049533_external --external'
--------------------------------
Added group "bz1049533_external"
--------------------------------
  Group name: bz1049533_external
  Description: 0
:: [   PASS   ] :: Command 'ipa group-add --desc=0 bz1049533_external --external' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ipa group-add --desc=0 bz1049533'
-----------------------
Added group "bz1049533"
-----------------------
  Group name: bz1049533
  Description: 0
  GID: 1744200004
:: [   PASS   ] :: Command 'ipa group-add --desc=0 bz1049533' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ipa group-add-member bz1049533 --groups=bz1049533_external'
  Group name: bz1049533
  Description: 0
  GID: 1744200004
  Member groups: bz1049533_external
-------------------------
Number of members added 1
-------------------------
:: [   PASS   ] :: Command 'ipa group-add-member bz1049533 --groups=bz1049533_external' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ipa group-add-member bz1049533_external             --external='adgroup1' --users='' --groups='''
  Group name: bz1049533_external
  Description: 0
  External member: S-1-5-21-2202318585-426110948-4011710778-1559
  Member of groups: bz1049533
-------------------------
Number of members added 1
-------------------------
:: [   PASS   ] :: Command 'ipa group-add-member bz1049533_external             --external='adgroup1' --users='' --groups=''' (Expected 0, got 0)
:: [ 06:58:31 ] :: Now reset sssd to be sure cache is clear
:: [  BEGIN   ] :: Running 'service sssd stop'
Redirecting to /bin/systemctl stop sssd.service
:: [   PASS   ] :: Command 'service sssd stop' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'rm -rf /var/lib/sss/{db,mc}/*'
:: [   PASS   ] :: Command 'rm -rf /var/lib/sss/{db,mc}/*' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'service sssd start'
Redirecting to /bin/systemctl start sssd.service
:: [   PASS   ] :: Command 'service sssd start' (Expected 0, got 0)
:: [ 06:58:32 ] :: Now check id of known user in adgroup1
:: [  BEGIN   ] :: Two way trust added :: actually running 'echo Secret123 | ipa trust-add pne.qe --admin Administrator                 --range-type=ipa-ad-trust --password --two-way=True'

MARK-LWD-LOOP -- 2017-04-27 06:58:37 --
---------------------------------------
Re-established trust to domain "pne.qe"
---------------------------------------
  Realm name: pne.qe
  Domain NetBIOS name: PNE
  Domain Security Identifier: S-1-5-21-2202318585-426110948-4011710778
  Trust direction: Two-way trust
  Trust type: Active Directory domain
  Trust status: Established and verified
:: [   PASS   ] :: Two way trust added (Expected 0, got 0)
:: [ 06:58:52 ] :: Now reset sssd to be sure cache is clear
:: [  BEGIN   ] :: SSSD restarted :: actually running 'service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start'
Redirecting to /bin/systemctl stop sssd.service
Redirecting to /bin/systemctl start sssd.service
:: [   PASS   ] :: SSSD restarted (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'id 'PNE.QE\Aduser1' 2>&1| tee /tmp/tmpout.ipa_trust_func_bug_1049533'
uid=1261601999(aduser1) gid=1261601999(aduser1) groups=1261601999(aduser1),1261600513(domain users)
:: [   PASS   ] :: Command 'id 'PNE.QE\Aduser1' 2>&1| tee /tmp/tmpout.ipa_trust_func_bug_1049533' (Expected 0, got 0)
:: [   FAIL   ] :: File '/tmp/tmpout.ipa_trust_func_bug_1049533' should contain 'bz1049533' 
File starts: <<<<<------>>>>>
uid=1261601999(aduser1) gid=1261601999(aduser1) groups=1261601999(aduser1),1261600513(domain users)
File ends: <<<<<------>>>>>
:: [   PASS   ] :: BZ1049533 not found

Comment 4 Jakub Hrozek 2017-04-27 15:52:29 UTC
When there is an issue in SSSD, please do not file it by cloning a bug from 2011 linking to a closed upstream ticket. It is then really unclear what to work on.

Please open a new bugzilla instead. When opening a bug, it is also a good idea to include log files and configuration. This bug has no information to work with, so I'm just going to close it.

If you can reproduce the issue in-house, please also give us access to the test machines.


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